Saturday, March 18, 2017

drop down multi checkbox with bootstraps selet

Hi,

You have to properly construct the <select> element.

Take a look at these sections of the manual:

https://docs.djangoproject.com/en/1.10/topics/forms/#rendering-fields-manually

https://docs.djangoproject.com/en/1.10/topics/forms/#looping-over-the-form-s-fields

Take a special look at field html_name; you should be using that as the name of your select element. The name is used to map the posted data to the form in the code.

Camilo.

--
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/c4cd95be-65c9-4435-b6bf-c90bde523079%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment