Following this as a sample (from the docs you linked to):
    widget=forms.TextInput(attrs={'class':'special'}))

You'd do this:
    widget=forms.TextInput(attrs={'div_css':'test'}))

Or, to not clobber other things set in the form, you could do it in the __init__:

    #working example I just did in one of my projects to prove it works
    self.fields['release_date'].widget.attrs["div_css"] = 'test'

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