mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-07 07:10:58 +00:00
Fix pickling error
This commit is contained in:
parent
54ca5da15d
commit
f0dbe32f7a
1 changed files with 6 additions and 0 deletions
|
|
@ -47,6 +47,12 @@ class StrategyWrapper(LazyObject):
|
|||
strategy = strategy()
|
||||
self._wrapped = strategy
|
||||
|
||||
def __getstate__(self):
|
||||
return {'_wrapped': self._wrapped}
|
||||
|
||||
def __setstate__(self, state):
|
||||
self._wrapped = state['_wrapped']
|
||||
|
||||
def __unicode__(self):
|
||||
return unicode(self._wrapped)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue