From 3010a51d5b368259584f07eace9b84ec1750c204 Mon Sep 17 00:00:00 2001 From: Arnaud-D <35631001+Arnaud-D@users.noreply.github.com> Date: Sun, 26 Jun 2022 19:10:46 +0200 Subject: [PATCH] Utilise path au lieu de re_path --- zds/tutorialv2/urls/urls_contents.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/zds/tutorialv2/urls/urls_contents.py b/zds/tutorialv2/urls/urls_contents.py index a1b2b4d8ad..3e1a1dd315 100644 --- a/zds/tutorialv2/urls/urls_contents.py +++ b/zds/tutorialv2/urls/urls_contents.py @@ -200,20 +200,20 @@ path("modifier-objectifs//", EditGoals.as_view(), name="edit-goals"), path("objectifs/", ViewContentsByGoal.as_view(), name="view-goals"), # Shareable links - re_path(r"^partage/gerer/(?P\d+)/$", ListShareableLinks.as_view(), name="list-shareable-links"), - re_path(r"^partage/creer/(?P\d+)/$", CreateShareableLink.as_view(), name="create-shareable-link"), - re_path(r"^partage/modifier/(?P.+)/$", EditShareableLink.as_view(), name="edit-shareable-link"), - re_path(r"^partage/desactiver/(?P.+)/$", DeactivateShareableLink.as_view(), name="deactivate-shareable-link"), - re_path(r"^partage/reactiver/(?P.+)/$", ReactivateShareableLink.as_view(), name="reactivate-shareable-link"), - re_path(r"^partage/supprimer/(?P.+)/$", DeleteShareableLink.as_view(), name="delete-shareable-link"), - re_path(r"^partage/(?P[^/]+)/$", DisplaySharedContent.as_view(), name="shareable-link"), - re_path( - r"^partage/(?P[^/]+)/(?P.+)/(?P.+)/$", + path("partage/gerer//", ListShareableLinks.as_view(), name="list-shareable-links"), + path("partage/creer//", CreateShareableLink.as_view(), name="create-shareable-link"), + path("partage/modifier//", EditShareableLink.as_view(), name="edit-shareable-link"), + path("partage/desactiver//", DeactivateShareableLink.as_view(), name="deactivate-shareable-link"), + path("partage/reactiver//", ReactivateShareableLink.as_view(), name="reactivate-shareable-link"), + path("partage/supprimer//", DeleteShareableLink.as_view(), name="delete-shareable-link"), + path("partage//", DisplaySharedContent.as_view(), name="shareable-link"), + path( + "partage////", DisplaySharedContainer.as_view(), name="shareable-link-container", ), - re_path( - r"^partage/(?P[^/]+)/(?P.+)/$", + path( + "partage///", DisplaySharedContainer.as_view(), name="shareable-link-container", ),