From 0f20062fd4775a2ae4d473516aae2d954ac188f8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 11 Jul 2019 13:43:17 +0200 Subject: Context record relations: manage full graph from operation --- archaeological_operations/models.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index aa4251273..a6e55a59e 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -122,11 +122,6 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, QRCodeItem, 'cached_periods': _("Periods"), 'cached_remains': _("Remains"), } - EXTRA_REQUEST_KEYS = { - 'cached_towns_label': 'cached_towns_label', - 'cached_periods': 'cached_periods', - 'cached_remains': 'remains', - } LONG_SLUG = 'archaeologicalsite' STATISTIC_MODALITIES_OPTIONS = OrderedDict([ @@ -164,6 +159,9 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, QRCodeItem, EXTRA_REQUEST_KEYS = { 'towns_label': 'towns', 'collaborators__pk': 'collaborators__pk', # dynamic_table_documents + 'cached_towns_label': 'cached_towns_label', + 'cached_periods': 'cached_periods', + 'cached_remains': 'remains', } # alternative names of fields for searches -- cgit v1.2.3