Skip to content

Commit

Permalink
Utilise path au lieu de re_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed Oct 7, 2022
1 parent c394c9b commit 3010a51
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions zds/tutorialv2/urls/urls_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,20 +200,20 @@
path("modifier-objectifs/<int:pk>/", EditGoals.as_view(), name="edit-goals"),
path("objectifs/", ViewContentsByGoal.as_view(), name="view-goals"),
# Shareable links
re_path(r"^partage/gerer/(?P<pk>\d+)/$", ListShareableLinks.as_view(), name="list-shareable-links"),
re_path(r"^partage/creer/(?P<pk>\d+)/$", CreateShareableLink.as_view(), name="create-shareable-link"),
re_path(r"^partage/modifier/(?P<id>.+)/$", EditShareableLink.as_view(), name="edit-shareable-link"),
re_path(r"^partage/desactiver/(?P<id>.+)/$", DeactivateShareableLink.as_view(), name="deactivate-shareable-link"),
re_path(r"^partage/reactiver/(?P<id>.+)/$", ReactivateShareableLink.as_view(), name="reactivate-shareable-link"),
re_path(r"^partage/supprimer/(?P<id>.+)/$", DeleteShareableLink.as_view(), name="delete-shareable-link"),
re_path(r"^partage/(?P<id>[^/]+)/$", DisplaySharedContent.as_view(), name="shareable-link"),
re_path(
r"^partage/(?P<id>[^/]+)/(?P<parent_container_slug>.+)/(?P<container_slug>.+)/$",
path("partage/gerer/<int:id>/", ListShareableLinks.as_view(), name="list-shareable-links"),
path("partage/creer/<int:id>/", CreateShareableLink.as_view(), name="create-shareable-link"),
path("partage/modifier/<int:id>/", EditShareableLink.as_view(), name="edit-shareable-link"),
path("partage/desactiver/<int:id>/", DeactivateShareableLink.as_view(), name="deactivate-shareable-link"),
path("partage/reactiver/<int:id>/", ReactivateShareableLink.as_view(), name="reactivate-shareable-link"),
path("partage/supprimer/<int:id>/", DeleteShareableLink.as_view(), name="delete-shareable-link"),
path("partage/<int:id>/", DisplaySharedContent.as_view(), name="shareable-link"),
path(
"partage/<int:id>/<slug:parent_container_slug>/<slug:container_slug>/",
DisplaySharedContainer.as_view(),
name="shareable-link-container",
),
re_path(
r"^partage/(?P<id>[^/]+)/(?P<container_slug>.+)/$",
path(
"partage/<int:id>/<slug:container_slug>/",
DisplaySharedContainer.as_view(),
name="shareable-link-container",
),
Expand Down

0 comments on commit 3010a51

Please sign in to comment.