diff --git a/annuaire/settings.py b/annuaire/settings.py index 08fcbb1..1e60d22 100644 --- a/annuaire/settings.py +++ b/annuaire/settings.py @@ -144,7 +144,7 @@ TIME_ZONE = "UTC" USE_I18N = True -USE_L10N = True +USE_L10N = False USE_TZ = True diff --git a/fiches/forms.py b/fiches/forms.py index b8f9782..ebbd29a 100644 --- a/fiches/forms.py +++ b/fiches/forms.py @@ -6,6 +6,11 @@ from fiches.models import Address, Department, Mail, Phone, Profile, Social class ProfileForm(forms.ModelForm): + birth_date = forms.DateField( + input_formats=["%Y-%m-%d"], + required=False, + ) + class Meta: model = Profile exclude = ["user"] diff --git a/fiches/templates/fiches/fiche.html b/fiches/templates/fiches/fiche.html index 68a7292..201a7b2 100644 --- a/fiches/templates/fiches/fiche.html +++ b/fiches/templates/fiches/fiche.html @@ -1,5 +1,5 @@ {% extends "fiches/base.html" %} -{% load i18n %} +{% load i18n l10n %} {% block content %} @@ -40,7 +40,9 @@