mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-23 00:10:24 +00:00
Don't mutate __dict__
This commit is contained in:
parent
3c04cb852f
commit
14939faef6
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from copy import copy
|
||||
from django.conf import settings
|
||||
from django.db.models.fields.files import ImageFieldFile
|
||||
from ..cachefiles.backends import get_default_cachefile_backend
|
||||
|
|
@ -108,7 +109,7 @@ class ImageSpec(BaseImageSpec):
|
|||
self._source = value
|
||||
|
||||
def __getstate__(self):
|
||||
state = self.__dict__
|
||||
state = copy(self.__dict__)
|
||||
|
||||
# Unpickled ImageFieldFiles won't work (they're missing a storage
|
||||
# object). Since they're such a common use case, we special case them.
|
||||
|
|
|
|||
Loading…
Reference in a new issue