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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index a8951db60..1aa48bc61 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -4815,6 +4815,7 @@ class Document(
def set_main_image(self, __, value):
"""
Post importer action - set the imported image as a main image for associated "value" items
+ For instance: use "finds" to set this image as main for associated finds
"""
for item in getattr(self, value).all():
item.main_image = self