Django ModelForm date format
December 21, 2009
I have a Django ModelForm, defined like this:
class DateRangeForm(forms.ModelForm): class Meta: model = DateRange fields = ('item', 'start_date', 'end_date',)
In order to change the date format from the default mm/dd/yyyy, I need to specify a widget for the form …