X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/38c4439877b4551c9197b848b8b4f98b215f659b..b3fd01202e71b1a43ab372b8f19e9ff6f13dae7b:/models/fields/__init__.py?ds=inline 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):