I have a lot of this throughout my forms.py files:
self.fields['verification_date'].widget.attrs["class"] = 'date-field input-small' self.fields['verification_date'].widget.format = '%m-%d-%Y' self.fields['mail_response'].widget.attrs["class"] = 'date-field input-small' self.fields['mail_response'].widget.format = '%m-%d-%Y' 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? -- 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.