summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-15 12:17:58 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-15 12:17:58 +0200
commitbb0210179b3d4a480cf6498d77bb0770ec3ffcdc (patch)
treecac332ea6aeba060a4ac6e9865d33b18be2e1e91
parent589a96d3b10339f4c05312095f548c14e4ca8488 (diff)
downloadIshtar-bb0210179b3d4a480cf6498d77bb0770ec3ffcdc.tar.bz2
Ishtar-bb0210179b3d4a480cf6498d77bb0770ec3ffcdc.zip
🐛 fix image gallery display (refs #6022)
-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)