diff options
Diffstat (limited to 'archaeological_operations/urls.py')
-rw-r--r-- | archaeological_operations/urls.py | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/archaeological_operations/urls.py b/archaeological_operations/urls.py index b87d6c5fd..7f5080c39 100644 --- a/archaeological_operations/urls.py +++ b/archaeological_operations/urls.py @@ -18,13 +18,17 @@ # See the file COPYING for details. from django.conf.urls import url -from django.urls import path +from django.urls import path, register_converter +from ishtar_common import urls_converters from ishtar_common.utils import check_rights from archaeological_operations import views from archaeological_operations import views_api from archaeological_operations import models + +register_converter(urls_converters.UnderscoreSlug, "uslug") + # be carreful: each check_rights must be relevant with ishtar_menu # forms @@ -311,6 +315,34 @@ urlpatterns = [ ), name="operation-relation-modify", ), + path( + "operation-site-relations-modify/<int:pk>/", + check_rights(["change_operation", "change_own_operation"])( + views.operation_site_modify_relations + ), + name="operation-site-relations-modify", + ), + path( + "operation-site-relations-modify/<int:pk>/<uslug:window_id>/", + check_rights(["change_operation", "change_own_operation"])( + views.operation_site_modify_relations + ), + name="operation-site-relations-modify", + ), + path( + "site-operation-relations-modify/<int:pk>/", + check_rights(["change_operation", "change_own_operation"])( + views.site_operation_modify_relations + ), + name="site-operation-relations-modify", + ), + path( + "site-operation-relations-modify/<int:pk>/<uslug:window_id>/", + check_rights(["change_operation", "change_own_operation"])( + views.site_operation_modify_relations + ), + name="site-operation-relations-modify", + ), url( r"^operation-qa-bulk-update/(?P<pks>[0-9-]+)?/$", check_rights(["change_operation", "change_own_operation"])( |