summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 870dd41db..75e07d7cb 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -538,9 +538,10 @@ class ImageModel(models.Model, ImageContainerModel):
self.thumbnail = None
self.image = None
finally:
+ returned = super().save(*args, **kwargs)
if image:
image.close()
- return super(ImageModel, self).save(*args, **kwargs)
+ return returned
def _get_thumb_name(self, filename):
splited = filename.split(".")