Skip to content

Commit

Permalink
Fix url consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Nov 24, 2024
1 parent 5355600 commit 86f319c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion insalan/cms/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

urlpatterns = [
path("constant/", views.ConstantList.as_view(), name="constant/list"),
path("constant/<str:name>", views.ConstantFetch.as_view(), name="constant/name"),
path("constant/<str:name>/", views.ConstantFetch.as_view(), name="constant/name"),
path("content/", views.ContentList.as_view(), name="content/list"),
path(
"content/<str:name>/", views.ContentFetch.as_view(), name="content/section"
Expand Down
2 changes: 1 addition & 1 deletion insalan/payment/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
path("product/new/", views.CreateProduct.as_view(), name="new-product"),
path("transaction/", views.TransactionList.as_view(), name="transactions"),
path(
"transaction/<int:pk>", views.TransactionPerId.as_view(), name="transactions/id"
"transaction/<int:pk>/", views.TransactionPerId.as_view(), name="transactions/id"
),
]
2 changes: 1 addition & 1 deletion insalan/pizza/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
path("pizza/<int:pk>/", 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/<int:pk>", views.PizzaListByGivenTimeSlot.as_view(),
path("pizza/by-timeslot/<int:pk>/", 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"),
Expand Down
12 changes: 6 additions & 6 deletions insalan/tickets/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

app_name = "tickets"
urlpatterns = [
path("get/<str:id>/<str:token>", views.get, name="get"),
path("scan/<str:token>", views.scan, name="scan"),
path("qrcode/<str:token>", views.qrcode, name="qrcode"),
path("generate/<str:token>", views.generate_pdf, name="generate"),
path("pay", views.pay, name="pay"),
path("unpaid", views.unpaid, name="unpaid"),
path("get/<str:id>/<str:token>/", views.get, name="get"),
path("scan/<str:token>/", views.scan, name="scan"),
path("qrcode/<str:token>/", views.qrcode, name="qrcode"),
path("generate/<str:token>/", views.generate_pdf, name="generate"),
path("pay/", views.pay, name="pay"),
path("unpaid/", views.unpaid, name="unpaid"),
]
14 changes: 7 additions & 7 deletions insalan/tournament/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
path("event/ongoing/", views.OngoingEventList.as_view(), name="event/ongoing"),
path("event/<int:pk>/", views.EventDetails.as_view(), name="event/details"),
path(
"event/<int:primary_key>/tournaments",
"event/<int:primary_key>/tournaments/",
views.EventDetailsSomeDeref.as_view(),
name="event/details-tournaments",
),
path("event/year/<int:year>", views.EventByYear.as_view(), name="event/by-year"),
path("event/year/<int:year>/", views.EventByYear.as_view(), name="event/by-year"),
path("game/", views.GameList.as_view(), name="game/list"),
path("game/<int:pk>/", views.GameDetails.as_view(), name="game/details"),
path("tournament/", views.TournamentList.as_view(), name="tournament/list"),
path(
"tournament/<int:pk>/",
views.TournamentDetails.as_view(),
name="tournament/details",
name="tournament/details/",
),
path(
"tournament/<int:primary_key>/full",
"tournament/<int:primary_key>/full/",
views.TournamentDetailsFull.as_view(),
name="tournament/details-full",
),
Expand Down Expand Up @@ -76,23 +76,23 @@
# name="group/list"
# ),
path(
"group/<int:group_id>/match/<int:match_id>",
"group/<int:group_id>/match/<int:match_id>/",
views.GroupMatchScore.as_view(),
name="group/match/score"
),
# path(
# "bracket/"
# ),
path(
"bracket/<int:bracket_id>/match/<int:match_id>",
"bracket/<int:bracket_id>/match/<int:match_id>/",
views.BracketMatchScore.as_view(),
name="bracket/match/score"
),
# path(
# "match/"
# ),
path(
"swiss/<int:swiss_id>/match/<int:match_id>",
"swiss/<int:swiss_id>/match/<int:match_id>/",
views.SwissMatchScore.as_view(),
name="swiss/match/score"
),
Expand Down
2 changes: 1 addition & 1 deletion insalan/user/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
),
path("get-csrf/", views.get_csrf, name="get-csrf"),
path(
"confirm/<int:pk>/<str:token>",
"confirm/<int:pk>/<str:token>/",
views.EmailConfirmView.as_view(),
name="confirm-email",
),
Expand Down

0 comments on commit 86f319c

Please sign in to comment.