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

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