diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-07 11:09:35 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 10:46:13 +0200 |
commit | fdd0231543be132b846e3bf12127cd01860f55bf (patch) | |
tree | d605a5b6bc1aa62d20631a965fc6bd6fd341bc86 /ishtar_common/models.py | |
parent | 52f6b37f1a1deac66f0b84c466be6c8dab277514 (diff) | |
download | Ishtar-fdd0231543be132b846e3bf12127cd01860f55bf.tar.bz2 Ishtar-fdd0231543be132b846e3bf12127cd01860f55bf.zip |
Fix tests and fixtures for new document management (refs #4107)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index d13def4c7..758596279 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1212,6 +1212,8 @@ class FixAssociated(object): class DocumentItem(object): @property def images(self): + if not hasattr(self, 'documents'): + return Document.objects.none() return self.documents.filter(image__isnull=False).exclude(image="") |