From 86f319c8a32b714780b129b30aeb72e8c2234e63 Mon Sep 17 00:00:00 2001 From: KwikKill Date: Mon, 25 Nov 2024 00:39:57 +0100 Subject: [PATCH] Fix url consistency --- insalan/cms/urls.py | 2 +- insalan/payment/urls.py | 2 +- insalan/pizza/urls.py | 2 +- insalan/tickets/urls.py | 12 ++++++------ insalan/tournament/urls.py | 14 +++++++------- insalan/user/urls.py | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/insalan/cms/urls.py b/insalan/cms/urls.py index d96dc454..a4bffcc5 100644 --- a/insalan/cms/urls.py +++ b/insalan/cms/urls.py @@ -14,7 +14,7 @@ urlpatterns = [ path("constant/", views.ConstantList.as_view(), name="constant/list"), - path("constant/", views.ConstantFetch.as_view(), name="constant/name"), + path("constant//", views.ConstantFetch.as_view(), name="constant/name"), path("content/", views.ContentList.as_view(), name="content/list"), path( "content//", views.ContentFetch.as_view(), name="content/section" diff --git a/insalan/payment/urls.py b/insalan/payment/urls.py index c2f8a7ae..3a8552ba 100644 --- a/insalan/payment/urls.py +++ b/insalan/payment/urls.py @@ -20,6 +20,6 @@ path("product/new/", views.CreateProduct.as_view(), name="new-product"), path("transaction/", views.TransactionList.as_view(), name="transactions"), path( - "transaction/", views.TransactionPerId.as_view(), name="transactions/id" + "transaction//", views.TransactionPerId.as_view(), name="transactions/id" ), ] diff --git a/insalan/pizza/urls.py b/insalan/pizza/urls.py index e8919dde..8597b308 100644 --- a/insalan/pizza/urls.py +++ b/insalan/pizza/urls.py @@ -34,7 +34,7 @@ path("pizza//", views.PizzaDetail.as_view(), name="pizza/detail"), path("pizza/search/",views.PizzaSearch.as_view(), name="pizza/fuzzy-find"), path("pizza/by-timeslot/", views.PizzaListByTimeSlot.as_view(), name="pizza/list/by-timeslot"), - path("pizza/by-timeslot/", views.PizzaListByGivenTimeSlot.as_view(), + path("pizza/by-timeslot//", views.PizzaListByGivenTimeSlot.as_view(), name="pizza/list/by-timeslot-id"), path("timeslot/", views.TimeSlotList.as_view(), name="timeslot/list"), path("timeslot/full/", views.TimeSlotListFull.as_view(), name="timeslot/list/full"), diff --git a/insalan/tickets/urls.py b/insalan/tickets/urls.py index 5b34a988..8c959906 100644 --- a/insalan/tickets/urls.py +++ b/insalan/tickets/urls.py @@ -12,10 +12,10 @@ app_name = "tickets" urlpatterns = [ - path("get//", views.get, name="get"), - path("scan/", views.scan, name="scan"), - path("qrcode/", views.qrcode, name="qrcode"), - path("generate/", views.generate_pdf, name="generate"), - path("pay", views.pay, name="pay"), - path("unpaid", views.unpaid, name="unpaid"), + path("get///", views.get, name="get"), + path("scan//", views.scan, name="scan"), + path("qrcode//", views.qrcode, name="qrcode"), + path("generate//", views.generate_pdf, name="generate"), + path("pay/", views.pay, name="pay"), + path("unpaid/", views.unpaid, name="unpaid"), ] diff --git a/insalan/tournament/urls.py b/insalan/tournament/urls.py index f155403c..81e73fa8 100644 --- a/insalan/tournament/urls.py +++ b/insalan/tournament/urls.py @@ -8,21 +8,21 @@ path("event/ongoing/", views.OngoingEventList.as_view(), name="event/ongoing"), path("event//", views.EventDetails.as_view(), name="event/details"), path( - "event//tournaments", + "event//tournaments/", views.EventDetailsSomeDeref.as_view(), name="event/details-tournaments", ), - path("event/year/", views.EventByYear.as_view(), name="event/by-year"), + path("event/year//", views.EventByYear.as_view(), name="event/by-year"), path("game/", views.GameList.as_view(), name="game/list"), path("game//", views.GameDetails.as_view(), name="game/details"), path("tournament/", views.TournamentList.as_view(), name="tournament/list"), path( "tournament//", views.TournamentDetails.as_view(), - name="tournament/details", + name="tournament/details/", ), path( - "tournament//full", + "tournament//full/", views.TournamentDetailsFull.as_view(), name="tournament/details-full", ), @@ -76,7 +76,7 @@ # name="group/list" # ), path( - "group//match/", + "group//match//", views.GroupMatchScore.as_view(), name="group/match/score" ), @@ -84,7 +84,7 @@ # "bracket/" # ), path( - "bracket//match/", + "bracket//match//", views.BracketMatchScore.as_view(), name="bracket/match/score" ), @@ -92,7 +92,7 @@ # "match/" # ), path( - "swiss//match/", + "swiss//match//", views.SwissMatchScore.as_view(), name="swiss/match/score" ), diff --git a/insalan/user/urls.py b/insalan/user/urls.py index 30976f08..80503071 100644 --- a/insalan/user/urls.py +++ b/insalan/user/urls.py @@ -14,7 +14,7 @@ ), path("get-csrf/", views.get_csrf, name="get-csrf"), path( - "confirm//", + "confirm///", views.EmailConfirmView.as_view(), name="confirm-email", ),