refactor: Move search into class

This commit is contained in:
2024-12-26 16:55:37 +01:00
parent 9ea00655d4
commit be97ac32fb
3 changed files with 70 additions and 30 deletions

View File

@@ -182,7 +182,7 @@ class CustomRegistrationForm(RegistrationForm):
class AdoptionNoticeSearchForm(forms.Form):
location = forms.CharField(max_length=20, label=_("Stadt"), required=False)
location_string = forms.CharField(max_length=20, label=_("Stadt"), required=False)
max_distance = forms.ChoiceField(choices=DistanceChoices, initial=DistanceChoices.ONE_HUNDRED, label=_("Suchradius"))
sex = forms.ChoiceField(choices=SexChoicesWithAll, label=_("Geschlecht"), required=False,
initial=SexChoicesWithAll.ALL)