X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/bf78e0c846297a4f732ffdfc181b3c89428fd2a4..252fcb23a8b86b88db639ef2c3bf5dd9c0c2f3ae:/models/fields/__init__.py diff --git a/models/fields/__init__.py b/models/fields/__init__.py index 1f9603e..d900e31 100644 --- a/models/fields/__init__.py +++ b/models/fields/__init__.py @@ -109,7 +109,8 @@ class SlugMultipleChoiceField(models.Field): 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):