summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations')
-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,