Re: Overriding widget for forms.ModelMultipleChoiceField in ModelForm

2010-02-22 Thread rennat
Here is how I accomplished this with a ModelForm class VariationForm(forms.ModelForm): option_values = forms.ModelMultipleChoiceField(queryset=Value.objects.none(), widget=CheckboxSelectMultiple(), required=False) class Meta: model = Variation def __init__(self, *args, **kwar

Overriding widget for forms.ModelMultipleChoiceField in ModelForm

2010-02-21 Thread Zodiak
Does anybody know how to make this? This variant: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#overriding-the-default-field-types-or-widgets DOES NOT WORK for forms.ModelMultipleChoiceField -- You received this message because you are subscribed to the Google Groups "Django use