On Mar 9, 7:20 am, Odd <o...@her-e-me.com> wrote:
> It works fine if I'm not using a modelform, i.e.
>
> class MyForm(forms.Form):
>    data=forms.CharField(widget=MySelect())
>
> Can one not use a custom widget in a modelform?
>
> Thanks.

The 'widgets' argument is new in the development version, it's not in
1.1. (I raised a documentation bug ages ago to mark this, but it has
never been applied.)

However, the syntax you give above works just as well for modelforms,
so you can use that.
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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