diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-10-10 13:42:18 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2024-10-14 16:48:37 +0200 |
commit | 435797a54e4d322a46711f303c2fc1fd5286330e (patch) | |
tree | 7c209135a17fe9b12fa2e2e844f345debed45d97 /archaeological_operations/urls.py | |
parent | 69df0a88eeaafeee81d76a3307e79fe5cad8ecf8 (diff) | |
download | Ishtar-435797a54e4d322a46711f303c2fc1fd5286330e.tar.bz2 Ishtar-435797a54e4d322a46711f303c2fc1fd5286330e.zip |
✨ site and operation relations forms refactoring
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"])( |