Monday, August 31, 2015

Form with MultipleChoiceField

Hi, Django beginner here.  I'm trying to use a form with a MultipleChoiceField, but any choice that is selected doesn't seem to be processed.

Here is my form (very simple):


Here is my view:



And here is my template, which I'm sure is correct.



I notice there is a problem since when I print "picked" in the view, the console returns "None," even if one or more choices are selected.
Also, how do I work with "picked" if the form is working? Is it a Queryset? A list?
 
Thank you!



--
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b8ac4f10-50be-417a-8797-6bbf618f2d72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment