From 22b0813edb80f378bf4906ab3157c26b0ea73457 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 18 Feb 2019 11:24:25 +0100 Subject: Sheet person: add related items tables --- archaeological_operations/models.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'archaeological_operations') 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 = { -- cgit v1.2.3