feat: allow search for sex

This commit is contained in:
2024-11-21 22:51:15 +01:00
parent 27541c6fb6
commit a42a3fa177
2 changed files with 9 additions and 5 deletions

View File

@@ -187,3 +187,5 @@ def _get_distances():
class AdoptionNoticeSearchForm(forms.Form):
location = forms.CharField(max_length=20, label=_("Stadt"))
max_distance = forms.ChoiceField(choices=_get_distances, label=_("Max. Distanz"))
sex = forms.ChoiceField(choices=SexChoicesWithAll, label=_("Geschlecht"), required=False,
initial=SexChoicesWithAll.ALL)