summaryrefslogtreecommitdiff
path: root/archaeological_finds
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
commit22b0813edb80f378bf4906ab3157c26b0ea73457 (patch)
tree92adea84e14590d18bf3caaa996f893a8f9cd3fd /archaeological_finds
parent38d8bed945ddd40df006ca8032b57489fed38015 (diff)
downloadIshtar-22b0813edb80f378bf4906ab3157c26b0ea73457.tar.bz2
Ishtar-22b0813edb80f378bf4906ab3157c26b0ea73457.zip
Sheet person: add related items tables
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/models_treatments.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 9fc130af5..e2882df35 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -77,6 +77,7 @@ class Treatment(DashboardFormItem, ValueGetter, BaseHistorizedItem,
"downstream_cached_label": "downstream__cached_label",
"upstream_cached_label": "upstream__cached_label",
'person__cached_label': 'person__cached_label',
+ "person__pk": "person__pk", # used by dynamic_table_documents
}
COL_LABELS = {
"downstream_cached_label": _(u"Downstream find"),
@@ -867,7 +868,10 @@ class TreatmentFile(DashboardFormItem, ClosedItem, BaseHistorizedItem,
INT_SEARCH_VECTORS = ['year', 'index']
PARENT_SEARCH_VECTORS = ['in_charge', 'applicant', 'applicant_organisation']
- EXTRA_REQUEST_KEYS = {}
+ EXTRA_REQUEST_KEYS = {
+ "in_charge__pk": "in_charge__pk", # used by dynamic_table_documents
+ "applicant__pk": "applicant__pk", # used by dynamic_table_documents
+ }
# alternative names of fields for searches
ALT_NAMES = {
'name': SearchAltName(