diff options
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/urls.py | 7 | ||||
-rw-r--r-- | archaeological_operations/views.py | 1 |
2 files changed, 6 insertions, 2 deletions
diff --git a/archaeological_operations/urls.py b/archaeological_operations/urls.py index 7d494f973..aca98d4c4 100644 --- a/archaeological_operations/urls.py +++ b/archaeological_operations/urls.py @@ -100,11 +100,14 @@ urlpatterns += patterns( kwargs={'force_own': True}), url(r'get-operation/(?P<type>.+)?$', 'get_operation', name='get-operation'), - url(r'get-operation-full/(?P<type>.+)?$', 'get_operation', - name='get-operation-full', kwargs={'full': True}), 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-full/(?P<type>.+)?$', 'get_operation', + name='get-operation-full', kwargs={'full': True}), + url(r'get-operation-shortcut/(?P<type>.+)?$', + 'get_operation', name='get-operation-shortcut', + kwargs={'full': 'shortcut'}), 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', |