mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
fix<migrations>: correct import of b64decode in migration 0020
This commit is contained in:
parent
b6e9a2cb80
commit
015b226766
@ -9,7 +9,12 @@ def unpickle_settings(settings_pickled):
|
||||
import pickle
|
||||
except ImportError:
|
||||
import cPickle as pickle
|
||||
from helpdesk.lib import b64decode
|
||||
try:
|
||||
# Python 2 support
|
||||
from base64 import urlsafe_b64decode as b64decode
|
||||
except ImportError:
|
||||
# Python 3 support
|
||||
from base64 import decodebytes as b64decode
|
||||
try:
|
||||
return pickle.loads(b64decode(settings_pickled.encode('utf-8')))
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user