diff options
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 |
commit | 712855bf2d1a5de3a6d182fdd1e5efccc111b22a (patch) | |
tree | e07b24ad59ae8ad8e4cd9e8c1d0fa1433f9fd21a | |
parent | b91cb6ff818e541d6f9272d9534d2f85f66f4b49 (diff) | |
download | Ishtar-712855bf2d1a5de3a6d182fdd1e5efccc111b22a.tar.bz2 Ishtar-712855bf2d1a5de3a6d182fdd1e5efccc111b22a.zip |
🚑️ manage photos with altered bits (refs #5626)
-rw-r--r-- | changelog/en/changelog_2022-06-15.md | 6 | ||||
-rw-r--r-- | changelog/fr/changelog_2023-01-25.md | 7 | ||||
-rw-r--r-- | ishtar_common/models.py | 3 |
3 files changed, 15 insertions, 1 deletions
diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md index 31e04701f..d4a6e28af 100644 --- a/changelog/en/changelog_2022-06-15.md +++ b/changelog/en/changelog_2022-06-15.md @@ -1,3 +1,9 @@ +v4.0.60 - 2023-10-10 +-------------------- + +### Bug fixes ### +- manage photos with altered bits (#5626) + v4.0.59 - 2023-09-29 -------------------- diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md index 245548f9a..34d6b01bf 100644 --- a/changelog/fr/changelog_2023-01-25.md +++ b/changelog/fr/changelog_2023-01-25.md @@ -1,3 +1,10 @@ +v4.0.60 - 2023-10-10 +-------------------- + +### Corrections de dysfonctionnements ### +- gestion de photos avec quelques "bits" défectueux (#5626) + + v4.0.59 - 2023-09-29 -------------------- 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(".") |