From bb0210179b3d4a480cf6498d77bb0770ec3ffcdc Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 15 Sep 2024 12:17:58 +0200 Subject: 🐛 fix image gallery display (refs #6022) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/views_item.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3