diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-12-18 15:28:54 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-12-18 15:39:54 +0100 |
commit | 0bffd12daeb9dfee4fb8365d0dca645e7e735c8a (patch) | |
tree | 90f101e7cb7531dd89a47db20fa2f1b4397ca51d /archaeological_finds | |
parent | ce42951468e274c3c375b6d526c6371a21d319c9 (diff) | |
download | Ishtar-0bffd12daeb9dfee4fb8365d0dca645e7e735c8a.tar.bz2 Ishtar-0bffd12daeb9dfee4fb8365d0dca645e7e735c8a.zip |
🐛 find values for templates: use "base_find_" prefix and simple prefix (refs #5695)
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index f702c97ea..a820e9220 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -2173,8 +2173,9 @@ class Find( if not bf: return values alt_filtr = [k[len("base_find_"):] for k in filtr if k.startswith("base_find_")] + alt_filtr += filtr # use simple and "base_find" prefix notation v = bf.get_values(prefix=prefix, no_values=True, filtr=alt_filtr, **kwargs) - v = dict([('base_find_' + k, v) for k, v in v.items()]) + v.update(dict((('base_find_' + k, v) for k, v in v.items()))) # use simple and "base_find" prefix notation v.update(values) values = v kwargs["no_find"] = True |