From e48c309f3aa23fae282217472d33b778500ab8a9 Mon Sep 17 00:00:00 2001 From: gw3000 Date: Sat, 24 Jun 2023 10:00:20 +0200 Subject: [PATCH] the right date format in DOB --- rescuer/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rescuer/forms.py b/rescuer/forms.py index a8162df..897ae1e 100644 --- a/rescuer/forms.py +++ b/rescuer/forms.py @@ -10,7 +10,7 @@ class DateInput(forms.DateInput): class RescuerForm(forms.ModelForm): class Meta: - widgets = {"date_of_birth": DateInput()} + widgets = {"date_of_birth": DateInput(format="%Y-%m-%d")} model = Rescuer fields = [ "gender",