Thanks Karen, Using a combination of both the links you provided I sorted it.
I just needed to change my form slightly class MyForm(ModelForm): mydate = forms.DateTimeField(input_formats=['%d-%m-%Y']) class Meta: model = MyObject Thanks again for pointing me the right direction. On Dec 15, 6:24 pm, "Karen Tracey" <kmtra...@gmail.com> wrote: > On Mon, Dec 15, 2008 at 10:55 AM, Aldo <marcwar...@gmail.com> wrote: > > > Still no good lars. Thanks though. > > http://docs.djangoproject.com/en/dev/ref/forms/fields/#datefield > > documents how to override the default valid date formats for input to a > DateField. > > http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#overrid... > > describes how to override the default fields created by a ModelForm. So I > think you want to override the field in your ModelForm and specify a > different list of valid date input formats. > > Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---