Hi

I'm trying to build the CSS class attributes for all the widgets in my
ModelForm dynamically in the form's __init__ method. This seems to
work for <select> and input widgets, but doesn't work if the <select>
is for a foreign key field. From what I can see the BaseModelAdmin
replaces widgets for foreign keys disregarding any attributes set to
the original widget in the form. Is there a way to go around this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to