From 435797a54e4d322a46711f303c2fc1fd5286330e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 10 Oct 2024 13:42:18 +0200 Subject: ✨ site and operation relations forms refactoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/urls.py | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'archaeological_operations/urls.py') 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//", + check_rights(["change_operation", "change_own_operation"])( + views.operation_site_modify_relations + ), + name="operation-site-relations-modify", + ), + path( + "operation-site-relations-modify///", + check_rights(["change_operation", "change_own_operation"])( + views.operation_site_modify_relations + ), + name="operation-site-relations-modify", + ), + path( + "site-operation-relations-modify//", + check_rights(["change_operation", "change_own_operation"])( + views.site_operation_modify_relations + ), + name="site-operation-relations-modify", + ), + path( + "site-operation-relations-modify///", + check_rights(["change_operation", "change_own_operation"])( + views.site_operation_modify_relations + ), + name="site-operation-relations-modify", + ), url( r"^operation-qa-bulk-update/(?P[0-9-]+)?/$", check_rights(["change_operation", "change_own_operation"])( -- cgit v1.2.3