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, 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="")