Thanks Melvyn,

Yes, I know about overriding a widget. I could override a Charfield with a TextArea. For simple stuff it makes sense.
Against which widget do I override the existing M2M widget though?


On 17/08/12 01:01, Melvyn Sopacua wrote:
On 17-8-2012 1:05, Houman wrote:

What I am trying to achieve would be deal type having a m2m
relationship to sales items. I don't like the m2m widget,
So change it. All ModelForm derivatives have a widgets argument that is
a dictionary of fieldname => widget instance:
<https://docs.djangoproject.com/en/1.4/topics/forms/modelforms/#overriding-the-default-field-types-or-widgets>

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