Benedict Verheyen wrote: <snip> I have solved it in my view. However, i'm not sure this is the best way to deal with it. In my view i set the input_formats of the datefield like this:
report_f = ReportForm(request.POST,instance=r) report_f.base_fields['date_reported'].input_formats = ('%d/%m/%Y',) To display the date correctly in my form: r.date_reported = r.date_reported.strftime("%d/%m/%Y") I would feel cleaner if i would be able to set these in the form. Is there anyway i could move this logic to the form definition? Regards, Benedict --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---