diff options
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index f482cf61d..6f8a66f3b 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -896,9 +896,10 @@ class ImageModel(models.Model): image = image.convert('RGB') # resize if necessary - self.image.save(filename, - self.create_thumb(image, self.IMAGE_MAX_SIZE), - save=False) + if self.IMAGE_MAX_SIZE: + self.image.save(filename, + self.create_thumb(image, self.IMAGE_MAX_SIZE), + save=False) if old_path != self.image.path: try: |