summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-01-23 16:18:12 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-01-23 16:18:12 +0100
commiteedfb7e85dc99a14b87db8f800c62224c27105a4 (patch)
tree1dd11cda491f5bc3ca044f8d60d676dd24915665
parentba2cf9301130e39277b45b6b6195471223997984 (diff)
downloadIshtar-eedfb7e85dc99a14b87db8f800c62224c27105a4.tar.bz2
Ishtar-eedfb7e85dc99a14b87db8f800c62224c27105a4.zip
Only one image associated to a document
-rw-r--r--ishtar_common/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 735ad27a0..030676dcc 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3985,6 +3985,10 @@ class Document(BaseHistorizedItem, OwnPerms, ImageModel):
"""
@property
+ def images_without_main_image(self):
+ return []
+
+ @property
def associated_file_name(self):
if not self.associated_file:
return ""