diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-12-29 18:26:54 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-12-29 18:28:18 +0100 | 
| commit | 70d050cb7de7c5620cf5992db5a281669cfef958 (patch) | |
| tree | 648da5accc2a93a9ff5c0c80dd1ddc09f6bc708f /archaeological_operations/urls.py | |
| parent | 535d091d8b2ecacbcc9ae7d32a80596aa60ed62f (diff) | |
| download | Ishtar-70d050cb7de7c5620cf5992db5a281669cfef958.tar.bz2 Ishtar-70d050cb7de7c5620cf5992db5a281669cfef958.zip | |
Add a template for operation sources
Diffstat (limited to 'archaeological_operations/urls.py')
| -rw-r--r-- | archaeological_operations/urls.py | 5 | 
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', | 
