Sunday, May 28, 2017

Class based view without rendering form

Hi,
I recently started learning Django. Please help me with following problem.
Background:
I am using Python 3.5 and Django 1.11.1.
I have 2 model class, Album and Song. A song always references to an album.
I am using class based views to perform CRUD operations. 
Problem:
how to update single field (favorite album/song)  without rendering any form? What it means is user should be able to click a button, which updates column is_favorite in database,
without leaving the current page .
Thanks 
 
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bfde298e-0b3e-4de5-9097-2a83b6ade1d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment