summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-02 21:46:17 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-02 21:46:17 +0200
commit630220568f4bf5706e6d980456a896b06ffc53c1 (patch)
tree4f2ee141e36477a65a5ee1bede267bf31e425cd9 /ishtar_common
parent71672e712570bf33b55cb534e2776ef8a1251755 (diff)
downloadIshtar-630220568f4bf5706e6d980456a896b06ffc53c1.tar.bz2
Ishtar-630220568f4bf5706e6d980456a896b06ffc53c1.zip
Finds: do not resize the image and regenerate a thumb on find duplication (refs #3579)
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 66433747c..7873b63f8 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -769,6 +769,10 @@ class ImageModel(models.Model):
return SimpleUploadedFile('temp', temp.read())
def save(self, *args, **kwargs):
+ if 'force_copy' in kwargs:
+ kwargs.pop('force_copy')
+ super(ImageModel, self).save(*args, **kwargs)
+ return
# manage images
if self.has_changed('image') and self.image:
# convert to jpg