On Aug 3, 2012, at 9:01 AM, Melvyn Sopacua <m.r.sopa...@gmail.com> wrote:

> On 3-8-2012 17:37, Lee Hinde wrote:
> 
>> self.fields['photo_response'].widget.attrs["class"] = 'date-field 
>> input-small'
>> self.fields['photo_response'].widget.format = '%m-%d-%Y'
>> 
>> 
>> is there a way to consolidate this sort of thing, such that if a field
>> is a date field, it always gets these settings without me having to
>> explicitly set them?
> 
> Well, you almost answered your own question. Subclass the DateField.
> 
> -- 
> Melvyn Sopacua
> 

Thanks, that got me looking in the right place. I think I need to sublcass the 
widget, since I'm concerned with the display of the data, not how it's 
saved/stored?

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