diff options
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 |
commit | d319e01c50deeba74674b9e0a6389f3637ce154a (patch) | |
tree | 8b84cd2075d6d78144126b73febe7cb0e0f9792c /archaeological_operations | |
parent | 5a4747a863ee926223148bad3163b4b7135328d3 (diff) | |
download | Ishtar-d319e01c50deeba74674b9e0a6389f3637ce154a.tar.bz2 Ishtar-d319e01c50deeba74674b9e0a6389f3637ce154a.zip |
Labels: quick access to operation on the container
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/models.py | 4 |
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, |