mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-21 21:53:30 +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(
|
||||
[("MAN", _("Man")), ("WOMAN", _("Woman")), ("INDIFFERENT", _("Indifferent"))],
|
||||
choices=[
|
||||
("MAN", _("Man")),
|
||||
("WOMAN", _("Woman")),
|
||||
("INDIFFERENT", _("Indifferent")),
|
||||
],
|
||||
widget=forms.RadioSelect,
|
||||
initial="INDIFFERENT",
|
||||
label=_("Sex"),
|
||||
|
Loading…
Reference in New Issue
Block a user