> I haven't tried to use it, but couldn't a DateTimeInput widget with those 
> fields
> solve the problem? It accepts a format arg which is how it will render its 
> data
> - combined with the right input_formats in the field, it stands to reason that
> would work :)

Yes you're right, so we can --

INPUT_FORMATS_DMY = ......
...
field = forms.DateTimeField(widget=forms.DateTimeInput(format='...'),
input_formats=INPUT_FORMATS_DMY)

Then add the extra code to every occurance of a date/datetime field to
all our Forms and ModelForms.

Tad ugly though, don't you think? Most platforms/languages/frameworks
handle the MDY/DMY situation relatively elegantly using some kind of
setting.

Am I not the only non-US guy who sees this as a major shortcoming in
newforms?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to