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 | 605b06762736e2dff6f6aa8e812862115bcfb0cf (patch) | |
tree | 8b84cd2075d6d78144126b73febe7cb0e0f9792c /archaeological_operations/models.py | |
parent | 8aa747850493a48e13e7a7ad6255f833aeedcd63 (diff) | |
download | Ishtar-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.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, |