On Sat, 2008-11-15 at 22:37 +0100, [EMAIL PROTECTED] wrote: > hi, how do I change a datefield to d.m.Y in a form inherited from modelform ?
You can't change that automatically. You will need to create a subclass of the model field that overrides the formfield() method to return a forms.DateField with an appropriate input_formats parameter passed in. In Django 1.1 there'll be optional support in the i18n framework so that every locale will use their native date format (d/m/Y pretty much everywhere except en-US) and that should make this a less common question. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---