misc: remove usage of django.utils.six (#68920)
This commit is contained in:
parent
0acb793288
commit
5802daf456
|
@ -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__)
|
||||
|
||||
|
|
Loading…
Reference in New Issue