Multi form or big form..
Hi,
I need to show a view with a list of users, every user can be joined to
an event or not. This is modelled with User (about 2k instances) and a
JointToEvent class. This last class has a relation to User and a status
field. This field can be: "Joined" or "Waiting to be paid" (CHOICE field).
the view I want to show is like this:
_User_ ______ Status _____
User1 Waiting to be paid
User2 Waiting to be paid
User3 Waiting to be paid
User4 Joined
Since django renders the CHOICE field as a <select> I want to submit
(A) the form to update the data every time the client change the status
from Waiting to Joined. Also when the user submits the data I don't want
to modify the screen position of the table (B). And I want it to be safe
(C).
A) put a javascript "onChange" in the widget submitting the data...:
- from a single form with all the data (all instances). ?
- from an individual form related to the modified instance. ?, is
created a different csrf token for every form?
B)
- I though that may be it is possible without returning a response to
the user after the submiting. Is it valid?
- Or may be use some tricky html tag (I don't know if it's possible)
which allows to reload the page and show the page in the same position
C) I think the better way to do it is by POST (safety)
Thanks a lot!,
Xavi
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home