From 67deb06fe4edccb12083773935441bc6353c8976 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 13 May 2025 18:32:40 +0200 Subject: 🚑️ templates: fix qrcode generation for finds (#6314) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ishtar_common/models.py b/ishtar_common/models.py index ffe078efd..ad7616b53 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -319,7 +319,9 @@ class ValueGetter: exclude = kwargs.get("exclude", []) values = {} if ( - hasattr(self, "qrcode") + # qrcode for basefind is not relevant and interfere with find qrcode + getattr(self, "SLUG", "") != "basefind" + and hasattr(self, "qrcode") and (not filtr or prefix + "qrcode_path" in filtr) and prefix + "qrcode_path" not in exclude ): -- cgit v1.2.3