Opened 4 years ago

Last modified 3 years ago

#32341 closed Bug

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

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 (2)

comment:1 by thewamz, 4 years ago

Description: modified (diff)

comment:2 by thewamz, 4 years ago

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