Browse Source

Forced the date format for the offer forms

master
David Winterbottom 13 years ago
parent
commit
ce3ffa165b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      oscar/apps/dashboard/offers/forms.py

+ 2
- 0
oscar/apps/dashboard/offers/forms.py View File

@@ -8,6 +8,8 @@ Benefit = get_model('offer', 'Benefit')
8 8
 
9 9
 
10 10
 class MetaDataForm(forms.ModelForm):
11
+    start_date = forms.DateField(widget=forms.DateInput(format='%Y-%m-%d'))
12
+    end_date = forms.DateField(widget=forms.DateInput(format='%Y-%m-%d'))
11 13
 
12 14
     class Meta:
13 15
         model = ConditionalOffer

Loading…
Cancel
Save