summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-23 10:53:43 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-05-23 10:53:43 +0200
commit6ae680af7ff8118341cf244b1b41e5e04644ba14 (patch)
treefd85fae64a1a0c00c8efb9afb98614fe1c8fa8c7 /archaeological_operations
parent42e31c5060a61e42822a166928b7aa39da7867fc (diff)
downloadIshtar-6ae680af7ff8118341cf244b1b41e5e04644ba14.tar.bz2
Ishtar-6ae680af7ff8118341cf244b1b41e5e04644ba14.zip
Document generation: better layout for VALUES
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/models.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 6ae219461..9ab3b317b 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -973,13 +973,14 @@ class Operation(ClosedItem, BaseHistorizedItem, QRCodeItem, GeoItem, OwnPerms,\
self.save()
return self.cached_label
- def get_values(self, prefix=''):
- values = super(Operation, self).get_values(prefix=prefix)
+ def get_values(self, prefix='', no_values=False):
+ values = super(Operation, self).get_values(prefix=prefix,
+ no_values=no_values)
values = get_values_town_related(self, prefix, values)
if prefix:
return values
values[prefix + 'context_records'] = [
- cr.get_values(prefix=prefix, no_base_finds=False)
+ cr.get_values(prefix=prefix, no_values=True, no_base_finds=False)
for cr in self.context_record.all()
]
return values