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 | 017e64157873dd01d6240fb62cdfee4ac5ca4e9d (patch) | |
tree | 92adea84e14590d18bf3caaa996f893a8f9cd3fd /archaeological_finds | |
parent | 09a78d33cdb239e7de40fa20d166d978298bedae (diff) | |
download | Ishtar-017e64157873dd01d6240fb62cdfee4ac5ca4e9d.tar.bz2 Ishtar-017e64157873dd01d6240fb62cdfee4ac5ca4e9d.zip |
Sheet person: add related items tables
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_treatments.py | 6 |
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( |