diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-18 11:24:25 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-18 11:24:25 +0100 | 
| commit | 22b0813edb80f378bf4906ab3157c26b0ea73457 (patch) | |
| tree | 92adea84e14590d18bf3caaa996f893a8f9cd3fd /archaeological_operations/models.py | |
| parent | 38d8bed945ddd40df006ca8032b57489fed38015 (diff) | |
| download | Ishtar-22b0813edb80f378bf4906ab3157c26b0ea73457.tar.bz2 Ishtar-22b0813edb80f378bf4906ab3157c26b0ea73457.zip | |
Sheet person: add related items tables
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index b5e6a7754..5769391ad 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -131,7 +131,10 @@ class ArchaeologicalSite(BaseHistorizedItem, OwnPerms, ValueGetter,      COL_LABELS = {'towns_label': _(u"Towns")} -    EXTRA_REQUEST_KEYS = {'towns_label': 'towns'} +    EXTRA_REQUEST_KEYS = { +        'towns_label': 'towns', +        'collaborators__pk': 'collaborators__pk',  # dynamic_table_documents +    }      # alternative names of fields for searches      ALT_NAMES = { @@ -524,9 +527,10 @@ class Operation(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter,          'related_treatment':          'context_record__base_finds__find__upstream_treatment__id',          'towns_label': 'towns', -        'scientist__pk': 'scientist__pk', -        'in_charge__pk': 'in_charge__pk', -        'collaborators__pk': 'collaborators__pk', +        'scientist__pk': 'scientist__pk',  # dynamic_table_documents +        'in_charge__pk': 'in_charge__pk',  # dynamic_table_documents +        'collaborators__pk': 'collaborators__pk',  # dynamic_table_documents +        'cira_rapporteur__pk': 'cira_rapporteur__pk'  # dynamic_table_documents      }      COL_LABELS = { | 
