summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index fb6bebed7..e1ca73a3b 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -291,7 +291,7 @@ class ImageModel(models.Model):
def save(self, *args, **kwargs):
# manage images
- if self.has_changed('image'):
+ if self.has_changed('image') and self.image:
# convert to jpg
filename = os.path.splitext(os.path.split(self.image.name)[-1])[0]
old_path = self.image.path