Skip to content

Commit

Permalink
Merge pull request #567 from vesatoivonen/issue-557
Browse files Browse the repository at this point in the history
Fix #557: Use super().__set_state__
  • Loading branch information
jrief committed Jan 22, 2021
2 parents 4bce1b8 + 2672181 commit 410db9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easy_thumbnails/files.py
Expand Up @@ -735,7 +735,10 @@ def __getstate__(self):
return state

def __setstate__(self, state):
self.__dict__.update(state)
if hasattr(super(), '__setstate__'):
super().__setstate__(state)
else:
self.__dict__.update(state)
self.__dict__['alias_target'] = self


Expand Down

0 comments on commit 410db9a

Please sign in to comment.