Opened 4 years ago

Last modified 3 years ago

#32341 closed Bug

forms.ModelMultipleChoiceField raising TypeError when empty_label provided — at Initial Version

Reported by: thewamz Owned by: nobody
Component: Forms Version: 3.1
Severity: Normal Keywords: ModelMultipleChoiceField
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In a django form, when I set a value for the empty_label parameter, a TypeError is raised. TypeError: init() got multiple values for keyword argument 'empty_label'

`
field_name = forms.ModelMultipleChoiceField(

label="Field Label",
queryset=MyModel.objects.all(),
empty_label="Select something",

)

`

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top