Thanks, that's a good idea, but if I try it, the choices are gone and
i get an empty field.

I tried:

class ProfileForm(ModelForm):
        def __init__(self, *args, **kwars):
                super(ModelForm, self).__init__(*args, **kwars)
                self.fields['gender'].widget = RadioSelect()
        class Meta:
                model = Profile
                ...

Any ideas?

On Aug 22, 12:18 pm, julianb <[EMAIL PROTECTED]> wrote:
>
> Maybe you can change the widget after the form got declared:
>
> form = BlaForm()
> form.fields['field'].widget = forms.RadioSelect()
>
> But I'm not quite sure what it does with the "------" line you have in
> a Select field.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to