diff options
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 |
commit | 3565d1fee6f675646f60c1690bb1c81549b227a9 (patch) | |
tree | 4f2ee141e36477a65a5ee1bede267bf31e425cd9 /ishtar_common | |
parent | 25bfdf136bd2bd7658878d25e337b02b8150915d (diff) | |
download | Ishtar-3565d1fee6f675646f60c1690bb1c81549b227a9.tar.bz2 Ishtar-3565d1fee6f675646f60c1690bb1c81549b227a9.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.py | 4 |
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 |