summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-05-13 18:32:40 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-05-13 19:05:39 +0200
commitc6321dd3dc1e508a00152edbd004d66cd30e892a (patch)
tree02f2815f957909bb81f4d163cfd35cf48ecef450
parent64d21078c06ae6e9b84c8ed0510b0059abc226e2 (diff)
downloadIshtar-c6321dd3dc1e508a00152edbd004d66cd30e892a.tar.bz2
Ishtar-c6321dd3dc1e508a00152edbd004d66cd30e892a.zip
🚑️ templates: fix qrcode generation for finds (#6314)
-rw-r--r--ishtar_common/models.py4
1 files changed, 3 insertions, 1 deletions
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
):