feat: add search-as-you-type functionality

This commit is contained in:
2025-01-08 09:18:48 +01:00
parent 4576ac68e0
commit cc97fe32aa
4 changed files with 70 additions and 2 deletions

View File

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