Verified Commit b8c7fb6f authored by Sli's avatar Sli
Browse files

django2.2: adapt ChoiceField to the new API

parent df531198
...@@ -70,7 +70,11 @@ class SearchForm(forms.ModelForm): ...@@ -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"),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment