Changes between Initial Version and Version 1 of Ticket #32341


Ignore:
Timestamp:
Jan 10, 2021, 7:29:54 PM (4 years ago)
Author:
thewamz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32341 – Description

    initial v1  
    11In 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'
    22
    3 ```
    4 field_name = forms.ModelMultipleChoiceField(
    5         label="Field Label",
    6         queryset=MyModel.objects.all(),
    7         empty_label="Select something",
    8     )
    9 ```
     3`field_name = forms.ModelMultipleChoiceField(queryset=MyModel.objects.all(), empty_label="Select something" )`
Back to Top