diff options
| 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 | 
| commit | 1eaa2257d7cc72ed6c25df393c591da544a12f53 (patch) | |
| tree | fd85fae64a1a0c00c8efb9afb98614fe1c8fa8c7 /archaeological_operations/models.py | |
| parent | 1351334e7914608fc2de87b806846bc37f671097 (diff) | |
| download | Ishtar-1eaa2257d7cc72ed6c25df393c591da544a12f53.tar.bz2 Ishtar-1eaa2257d7cc72ed6c25df393c591da544a12f53.zip | |
Document generation: better layout for VALUES
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 7 | 
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 | 
