diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-05-15 18:54:19 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 08:44:34 +0200 |
commit | f437b5fbfbbf9bbd6088dc4ff39a4737c82f6439 (patch) | |
tree | 17a144f0d505f962db12ed91f113bab57e6ee27b /ishtar_common | |
parent | 75952dfb3d591802164661325a949d8dbb9a3ac5 (diff) | |
download | Ishtar-f437b5fbfbbf9bbd6088dc4ff39a4737c82f6439.tar.bz2 Ishtar-f437b5fbfbbf9bbd6088dc4ff39a4737c82f6439.zip |
Fix tests for M2M images
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 3 |
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: |