Pass the pickle test; should fix #97

This commit is contained in:
Matthew Tretter 2012-02-17 20:07:50 -05:00
parent 280d01f07e
commit 84d36791b8

View file

@ -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