mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
Pass the pickle test; should fix #97
This commit is contained in:
parent
280d01f07e
commit
84d36791b8
1 changed files with 4 additions and 1 deletions
|
|
@ -35,5 +35,8 @@ class ImageSpecFileDescriptor(object):
|
|||
else:
|
||||
img_spec_file = ImageSpecFieldFile(instance, self.field,
|
||||
self.attname)
|
||||
setattr(instance, self.attname, img_spec_file)
|
||||
instance.__dict__[self.attname] = img_spec_file
|
||||
return img_spec_file
|
||||
|
||||
def __set__(self, instance, value):
|
||||
instance.__dict__[self.attname] = value
|
||||
|
|
|
|||
Loading…
Reference in a new issue