summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-09-22 09:46:06 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-09-24 16:48:04 +0200
commit4473e91231794ba9082795df9441d49e461b10db (patch)
treef765507272d16ad73ada0198fc30f8afc1b97319 /archaeological_operations
parent4eff275ae272752b91f1c87b2085689923bb1366 (diff)
downloadIshtar-4473e91231794ba9082795df9441d49e461b10db.tar.bz2
Ishtar-4473e91231794ba9082795df9441d49e461b10db.zip
WIP: ajaxify shortcut menu
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/urls.py6
-rw-r--r--archaeological_operations/views.py1
2 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_operations/urls.py b/archaeological_operations/urls.py
index 7d494f973..a20eccfe5 100644
--- a/archaeological_operations/urls.py
+++ b/archaeological_operations/urls.py
@@ -105,6 +105,12 @@ urlpatterns += patterns(
url(r'get-operation-full/own/(?P<type>.+)?$',
'get_operation', name='get-own-operation-full',
kwargs={'full': True, 'force_own': True}),
+ url(r'get-operation-cached/(?P<type>.+)?$',
+ 'get_operation', name='get-own-operation-cached',
+ kwargs={'full': 'cached'}),
+ url(r'get-operation-cached/own/(?P<type>.+)?$',
+ 'get_operation', name='get-own-operation-cached',
+ kwargs={'full': 'cached', 'force_own': True}),
url(r'get-available-operation-code/(?P<year>.+)?$',
'get_available_operation_code', name='get_available_operation_code'),
url(r'revert-operation/(?P<pk>.+)/(?P<date>.+)$',
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index 84e98010e..ae82e9e89 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -148,6 +148,7 @@ get_operation = get_item(
relative_session_names=[('file', 'associated_file__pk')],
extra_request_keys={
'common_name': 'common_name__icontains',
+ 'cached_label': 'cached_label__icontains',
'comment': 'comment__icontains',
'scientific_documentation_comment':
'scientific_documentation_comment__icontains',