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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 97af69417..b4a385b4e 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3183,7 +3183,8 @@ class IshtarImage(ImageModel):
super(IshtarImage, self).save(*args, **kwargs)
- if not no_path_change and not getattr(self, '_no_path_change', False):
+ if self.image and not no_path_change and \
+ not getattr(self, '_no_path_change', False):
links = self._move_image()
links = self.LINK_SPLIT.join(links)
if links != self.associated_links: