Project

General

Profile

0002-DateInput-widgets-defined-in-order-to-prevent-datepi.patch

Serghei Mihai, 13 August 2013 02:41 PM

Download (1.1 KB)

View differences:

Subject: [PATCH 2/3] DateInput widgets defined in order to prevent datepicker
 to empty them

 calebasse/personnes/forms.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
calebasse/personnes/forms.py
185 185
        model = Holiday
186 186
        widgets = {
187 187
            'comment': forms.Textarea(attrs = {'rows': 3, 'cols': 18}),
188
            'start_date': forms.TextInput(attrs = {'size': 10}),
189
            'end_date': forms.TextInput(attrs = {'size': 10}),
188
            'start_date': forms.DateInput(format = '%d/%m/%Y',
189
                                          attrs = {'size': 10}),
190
            'end_date': forms.DateInput(format = '%d/%m/%Y',
191
                                        attrs = {'size': 10})
190 192
            }
191 193

  
192 194
    def clean(self):
193
-