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
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
2 matches
Mail list logo