From a296bd385e704b1e76a774341f8ad126c892ccab Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 29 Dec 2015 18:26:54 +0100 Subject: Add a template for operation sources --- archaeological_operations/urls.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'archaeological_operations/urls.py') diff --git a/archaeological_operations/urls.py b/archaeological_operations/urls.py index 68ac0bad0..76723deab 100644 --- a/archaeological_operations/urls.py +++ b/archaeological_operations/urls.py @@ -21,6 +21,7 @@ from django.conf.urls.defaults import * from ishtar_common.wizards import check_rights import views +import models # be carreful: each check_rights must be relevant with ishtar_menu @@ -104,7 +105,7 @@ urlpatterns += patterns( url(r'revert-operation/(?P.+)/(?P.+)$', 'revert_operation', name='revert-operation'), url(r'show-operation(?:/(?P.+))?/(?P.+)?$', - 'show_operation', name='show-operation'), + 'show_operation', name=models.Operation.SHOW_URL), url(r'show-historized-operation/(?P.+)?/(?P.+)?$', 'show_operation', name='show-historized-operation'), url(r'get-administrativeactop/(?P.+)?$', @@ -125,6 +126,8 @@ urlpatterns += patterns( url(r'generatedoc-administrativeactop/(?P.+)?/(?P.+)?$', 'generatedoc_administrativeactop', name='generatedoc-administrativeactop'), + url(r'show-operationsource(?:/(?P.+))?/(?P.+)?$', + 'show_operationsource', name=models.OperationSource.SHOW_URL), url(r'get-operationsource/(?P.+)?$', 'get_operationsource', name='get-operationsource'), url(r'dashboard_operation/$', 'dashboard_operation', -- cgit v1.2.3