Hi!
I have a model with a DateField and I'm setting the input_formats properties
to "%d/%m/%Y":
birth_date = forms.DateField(input_formats=("%d/%m/%Y",))
When I go add a object in this format ("%Y/%m/%d"), the django validation
validate with sucess.
But when I edit my object:
form = UserForm(instance=stored_user)
Django fill the DateField in this format: ("%Y-%m-%d")
How I do to Django fill the field in this format ("%Y/%m/%d") ?
Anybody help me?
Thanks!
Edgard Matos from Brazil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---