diff --git a/django_select2/forms.py b/django_select2/forms.py index 1a9989e..18f925b 100644 --- a/django_select2/forms.py +++ b/django_select2/forms.py @@ -57,7 +57,6 @@ from django.core import signing from django.db.models import Q from django.forms.models import ModelChoiceIterator from django.utils.encoding import force_text -from django.utils.six.moves.cPickle import PicklingError as cPicklingError from .cache import cache from .conf import settings @@ -262,7 +261,7 @@ class HeavySelect2Mixin(object): 'widget': self, 'url': self.get_url(), }) - except (PicklingError, cPicklingError, AttributeError): + except (PicklingError, AttributeError): msg = "You need to overwrite \"set_to_cache\" or ensure that %s is serialisable." raise NotImplementedError(msg % self.__class__.__name__)