django-forms-bootstrap icon indicating copy to clipboard operation
django-forms-bootstrap copied to clipboard

Selected Boxes are not selected anymore after rendering the form

Open panisch opened this issue 12 years ago • 1 comments

If I use a form field like this:

categories = forms.ModelMultipleChoiceField(queryset=Categories.objects.all(), widget=forms.CheckboxSelectMultiple)

and send the form with one of the boxes selected it is not selected in the resulting response object anymore. When I use {{ form.as_p }} or just {{ form.categories }} instead of {{ form|as_bootstrap }}, the box is still selected as it should be!

I hope you know what I mean! :-)

panisch avatar Sep 06 '12 11:09 panisch

@rizumu Can this issue be closed? Looks like you fixed it 😊

ossanna16 avatar Dec 22 '15 13:12 ossanna16