Corrige l'affichage de la date dans le formulaire
This commit is contained in:
parent
6d824a58be
commit
713d686047
1 changed files with 3 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue