From 08811d24b0a1869322db82b65c4fbd8a35bc7327 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 14 Dec 2015 21:44:48 +0100 Subject: Force filtering on "own" items on selection for modification --- archaeological_operations/urls.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'archaeological_operations/urls.py') diff --git a/archaeological_operations/urls.py b/archaeological_operations/urls.py index a6c4bd7b3..68ac0bad0 100644 --- a/archaeological_operations/urls.py +++ b/archaeological_operations/urls.py @@ -89,10 +89,16 @@ urlpatterns += patterns( 'archaeological_operations.views', url(r'autocomplete-operation/$', 'autocomplete_operation', name='autocomplete-operation'), + url(r'get-operation/own/(?P.+)?$', + 'get_operation', name='get-own-operation', + kwargs={'force_own': True}), url(r'get-operation/(?P.+)?$', 'get_operation', name='get-operation'), url(r'get-operation-full/(?P.+)?$', 'get_operation', name='get-operation-full', kwargs={'full': True}), + url(r'get-operation-full/own/(?P.+)?$', + 'get_operation', name='get-own-operation-full', + kwargs={'full': True, 'force_own': True}), url(r'get-available-operation-code/(?P.+)?$', 'get_available_operation_code', name='get_available_operation_code'), url(r'revert-operation/(?P.+)/(?P.+)$', -- cgit v1.2.3