summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-01-05 16:57:05 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:23 +0100
commit605b06762736e2dff6f6aa8e812862115bcfb0cf (patch)
tree8b84cd2075d6d78144126b73febe7cb0e0f9792c /archaeological_operations/models.py
parent8aa747850493a48e13e7a7ad6255f833aeedcd63 (diff)
downloadIshtar-605b06762736e2dff6f6aa8e812862115bcfb0cf.tar.bz2
Ishtar-605b06762736e2dff6f6aa8e812862115bcfb0cf.zip
Labels: quick access to operation on the container
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 8436121a4..246934d91 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -1238,9 +1238,11 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem,
values = super(Operation, self).get_values(
prefix=prefix, no_values=no_values, filtr=filtr, **kwargs)
values = get_values_town_related(self, prefix, values, filtr=filtr)
+ exclude = kwargs.get("exclude", [])
if prefix:
return values
- if not filtr or prefix + 'context_records' in filtr:
+ if (not filtr or prefix + 'context_records' in filtr) and \
+ prefix + "context_records" not in exclude:
kwargs["no_base_finds"] = False
values[prefix + 'context_records'] = [
cr.get_values(prefix=prefix, no_values=True, filtr=None,