summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar_common/views_item.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py
index 7ca1f4b59..360643128 100644
--- a/ishtar_common/views_item.py
+++ b/ishtar_common/views_item.py
@@ -2541,6 +2541,8 @@ def get_item(
else:
tab_cols.append(tc)
k = "__".join(tab_cols)
+ if model == models.Document and k in ("image", "thumbnail"):
+ k = "main_image__" + k
if k.endswith("__image") or k.endswith("__thumbnail"):
if (
not value.startswith(settings.MEDIA_ROOT)