diff --git a/src/fellchensammlung/forms.py b/src/fellchensammlung/forms.py index ad7b54c..7f7010e 100644 --- a/src/fellchensammlung/forms.py +++ b/src/fellchensammlung/forms.py @@ -90,6 +90,10 @@ class AnimalForm(forms.ModelForm): model = Animal fields = ["name", "date_of_birth", "species", "sex", "description"] + widgets = { + 'date_of_birth': DateInput(format=('%Y-%m-%d')) + } + class AnimalFormWithDateWidget(AnimalForm): class Meta: