From 422e2f7b42fec0768cbf96430a6f847a052bd3d7 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sun, 26 Jul 2020 22:34:56 +0200 Subject: [PATCH] Fix date input --- bds/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bds/forms.py b/bds/forms.py index e54f17d4..557f7c83 100644 --- a/bds/forms.py +++ b/bds/forms.py @@ -33,3 +33,4 @@ class ProfileForm(forms.ModelForm): class Meta: model = BDSProfile exclude = ["user"] + widgets = {"birthdate": forms.DateInput(attrs={"type": "date"})}