Corrige l'affichage de la date dans le formulaire

This commit is contained in:
Tom Hubrecht 2021-10-26 09:24:44 +02:00
parent 6d824a58be
commit 713d686047

View file

@ -36,4 +36,6 @@ class ProfileForm(forms.ModelForm):
class Meta:
model = BDSProfile
exclude = ["user"]
widgets = {"birthdate": forms.DateInput(attrs={"type": "date"})}
widgets = {
"birthdate": forms.DateInput(attrs={"type": "date"}, format="%Y-%m-%d")
}