summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
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
commit0f20062fd4775a2ae4d473516aae2d954ac188f8 (patch)
tree9a872ecf4eee77b1f031025b910e678115da6c83 /archaeological_operations/models.py
parent76e65bd4daa5670dd28eec04230a2982c8da3402 (diff)
downloadIshtar-0f20062fd4775a2ae4d473516aae2d954ac188f8.tar.bz2
Ishtar-0f20062fd4775a2ae4d473516aae2d954ac188f8.zip
Context record relations: manage full graph from operation
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py8
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