Opened 3 years ago

Last modified 3 years ago

#32341 closed Bug

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

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 (last modified by thewamz)

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(queryset=MyModel.objects.all(), empty_label="Select something" )

Change History (1)

comment:1 by thewamz, 3 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top