mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
django2.2: adapt ChoiceField to the new API
This commit is contained in:
parent
df531198c9
commit
b8c7fb6f74
@ -70,7 +70,11 @@ class SearchForm(forms.ModelForm):
|
|||||||
}
|
}
|
||||||
|
|
||||||
sex = forms.ChoiceField(
|
sex = forms.ChoiceField(
|
||||||
[("MAN", _("Man")), ("WOMAN", _("Woman")), ("INDIFFERENT", _("Indifferent"))],
|
choices=[
|
||||||
|
("MAN", _("Man")),
|
||||||
|
("WOMAN", _("Woman")),
|
||||||
|
("INDIFFERENT", _("Indifferent")),
|
||||||
|
],
|
||||||
widget=forms.RadioSelect,
|
widget=forms.RadioSelect,
|
||||||
initial="INDIFFERENT",
|
initial="INDIFFERENT",
|
||||||
label=_("Sex"),
|
label=_("Sex"),
|
||||||
|
Loading…
Reference in New Issue
Block a user