From dffa74ac6437924e2484a32396bf8338af2735d0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 16 Jan 2018 17:13:41 +0100 Subject: UI: manage localissation of date input fields --- ishtar_common/forms.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ishtar_common/forms.py') diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 41cebbeb5..5b8b43bf4 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -32,7 +32,7 @@ from django.utils import formats, translation from django.utils.functional import lazy from django.utils.translation import ugettext_lazy as _ -from bootstrap_datepicker.widgets import DatePicker +from bootstrap_datepicker.widgets import DatePicker, DATE_FORMAT import models import widgets from ishtar_common.utils import MultiValueDict @@ -242,12 +242,6 @@ class FormSet(CustomForm, BaseFormSet): form.fields[DELETION_FIELD_NAME].widget = widgets.DeleteWidget() -DATE_FORMAT = { - 'fr': "dd/mm/yyyy", - 'en': "yyyy/mm/dd", -} - - class IshtarForm(forms.Form): def __init__(self, *args, **kwargs): super(IshtarForm, self).__init__(*args, **kwargs) -- cgit v1.2.3