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 18:53:06 +0200
commit67deb06fe4edccb12083773935441bc6353c8976 (patch)
treefa36b0c44f1d88ecdc61ea09cabe0655edc650dd
parent619ab93315a3140bb81e819e56b13925983358d5 (diff)
downloadIshtar-67deb06fe4edccb12083773935441bc6353c8976.tar.bz2
Ishtar-67deb06fe4edccb12083773935441bc6353c8976.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 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
):