summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
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
commit017e64157873dd01d6240fb62cdfee4ac5ca4e9d (patch)
tree92adea84e14590d18bf3caaa996f893a8f9cd3fd /archaeological_operations/models.py
parent09a78d33cdb239e7de40fa20d166d978298bedae (diff)
downloadIshtar-017e64157873dd01d6240fb62cdfee4ac5ca4e9d.tar.bz2
Ishtar-017e64157873dd01d6240fb62cdfee4ac5ca4e9d.zip
Sheet person: add related items tables
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py12
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 = {