del kwargs[k]
defaults.update(kwargs)
- form_class = forms.TypedMultipleChoiceField
+ # Django 1.2 does not supply MultipleChoiceField
+ form_class = getattr(forms, 'TypedMultipleChoiceField', forms.MultipleChoiceField)
return form_class(**defaults)
def validate(self, value, model_instance):