Skip to content

Selected Boxes are not selected anymore after rendering the form #4

@panisch

Description

@panisch

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! :-)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions