summaryrefslogtreecommitdiff
path: root/archaeological_context_records/urls.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-11-14 15:18:00 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-11-14 17:58:03 +0100
commit222506fddb21d3c4e87fc6faf9b905dd988062c6 (patch)
treeb940e28f9eadf2f3a81c859f5c576e42febdb00f /archaeological_context_records/urls.py
parent872bc0f6b00c44a5978a826c063a3f1e50dd4b15 (diff)
downloadIshtar-222506fddb21d3c4e87fc6faf9b905dd988062c6.tar.bz2
Ishtar-222506fddb21d3c4e87fc6faf9b905dd988062c6.zip
✨ datings refactoring: modify view/form
Diffstat (limited to 'archaeological_context_records/urls.py')
-rw-r--r--archaeological_context_records/urls.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/archaeological_context_records/urls.py b/archaeological_context_records/urls.py
index ec529deeb..fe2b6bde1 100644
--- a/archaeological_context_records/urls.py
+++ b/archaeological_context_records/urls.py
@@ -161,14 +161,22 @@ urlpatterns = [
),
name="context-record-relation-modify",
),
- re_path(
- r"^context-record-dating/(?P<pk>.+)/$",
+ path(
+ "context-record-dating/<int:pk>/",
check_permissions(["archaeological_context_records.change_contextrecord",
"archaeological_context_records.change_own_contextrecord"])(
views.context_record_dating_add
),
name="context-record-dating-add",
),
+ path(
+ "context-record-dating/<int:pk>/<int:dating_pk>/",
+ check_permissions(["archaeological_context_records.change_contextrecord",
+ "archaeological_context_records.change_own_contextrecord"])(
+ views.context_record_dating_modify
+ ),
+ name="context-record-dating-modify",
+ ),
re_path(
r"^operation-qa-contextrecord/(?P<pks>[0-9]+)/$",
check_permissions(["archaeological_context_records.add_contextrecord"])(