From c6321dd3dc1e508a00152edbd004d66cd30e892a 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(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 3a3fd70c1..aa18f6182 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -324,7 +324,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