summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-10-10 15:57:24 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-10-10 16:09:01 +0200
commit712855bf2d1a5de3a6d182fdd1e5efccc111b22a (patch)
treee07b24ad59ae8ad8e4cd9e8c1d0fa1433f9fd21a /ishtar_common/models.py
parentb91cb6ff818e541d6f9272d9534d2f85f66f4b49 (diff)
downloadIshtar-712855bf2d1a5de3a6d182fdd1e5efccc111b22a.tar.bz2
Ishtar-712855bf2d1a5de3a6d182fdd1e5efccc111b22a.zip
🚑️ manage photos with altered bits (refs #5626)
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(".")