Anybody help me?

On Wed, Feb 11, 2009 at 11:36 AM, Edgard Matos <edgardma...@gmail.com>wrote:

> 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
>



-- 
Atenciosamente,
Edgard Matos
E-mail: edgardma...@gmail.com
Skype: edgardmatos
Celular: 85 8837 8285

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to