summaryrefslogtreecommitdiff
path: root/archaeological_operations/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/urls.py')
-rw-r--r--archaeological_operations/urls.py5
1 files changed, 4 insertions, 1 deletions
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<pk>.+)/(?P<date>.+)$',
'revert_operation', name='revert-operation'),
url(r'show-operation(?:/(?P<pk>.+))?/(?P<type>.+)?$',
- 'show_operation', name='show-operation'),
+ 'show_operation', name=models.Operation.SHOW_URL),
url(r'show-historized-operation/(?P<pk>.+)?/(?P<date>.+)?$',
'show_operation', name='show-historized-operation'),
url(r'get-administrativeactop/(?P<type>.+)?$',
@@ -125,6 +126,8 @@ urlpatterns += patterns(
url(r'generatedoc-administrativeactop/(?P<pk>.+)?/(?P<template_pk>.+)?$',
'generatedoc_administrativeactop',
name='generatedoc-administrativeactop'),
+ url(r'show-operationsource(?:/(?P<pk>.+))?/(?P<type>.+)?$',
+ 'show_operationsource', name=models.OperationSource.SHOW_URL),
url(r'get-operationsource/(?P<type>.+)?$',
'get_operationsource', name='get-operationsource'),
url(r'dashboard_operation/$', 'dashboard_operation',