Re: Django: How to get American date format in a form?
Thanks Melvyn,
I have tried this:
def contact_date_callback(self, field, **kwargs) :
return field.contact_date(localize=True, **kwargs)
But the date still shows as 2012-08-13
note, that Aptana Studio 3.0 complained that I put `self` first.
Nonetheless neither version works.
Any other idea? :(
On 13/08/12 13:20, Melvyn Sopacua wrote:
> def formfield_callback(field, **kwargs) :
> return field.formfield(localize=True, **kwargs)
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home