From edbfb724334fc60e0d3caf3325683a5ceab4405e Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Mon, 13 Aug 2018 09:06:10 +0100 Subject: [PATCH] Refactor submission pk paths to be tidier --- opentech/apply/funds/urls.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/opentech/apply/funds/urls.py b/opentech/apply/funds/urls.py index 48895af0f..f5662705d 100644 --- a/opentech/apply/funds/urls.py +++ b/opentech/apply/funds/urls.py @@ -26,9 +26,11 @@ submission_urls = ([ path('edit/', SubmissionEditView.as_view(), name="edit"), path('sealed/', SubmissionSealedView.as_view(), name="sealed"), ])), - path('<int:submission_pk>/', include('opentech.apply.review.urls', namespace="reviews")), - path('<int:submission_pk>/', include('opentech.apply.determinations.urls', namespace="determinations")), - path('<int:submission_pk>/revisions/', include(revision_urls, namespace="revisions")), + path('<int:submission_pk>/', include([ + path('', include('opentech.apply.review.urls', namespace="reviews")), + path('', include('opentech.apply.determinations.urls', namespace="determinations")), + path('revisions/', include(revision_urls, namespace="revisions")), + ])), ], 'submissions') -- GitLab