diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-11 13:43:17 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-11 13:43:17 +0200 |
commit | 0f20062fd4775a2ae4d473516aae2d954ac188f8 (patch) | |
tree | 9a872ecf4eee77b1f031025b910e678115da6c83 /archaeological_operations | |
parent | 76e65bd4daa5670dd28eec04230a2982c8da3402 (diff) | |
download | Ishtar-0f20062fd4775a2ae4d473516aae2d954ac188f8.tar.bz2 Ishtar-0f20062fd4775a2ae4d473516aae2d954ac188f8.zip |
Context record relations: manage full graph from operation
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/models.py | 8 |
1 files changed, 3 insertions, 5 deletions
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 |