Unify url path names
This commit is contained in:
parent
dc1a9d5c4f
commit
880ea93424
|
@ -5,27 +5,27 @@ from games import views
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("", views.index, name="index"),
|
path("", views.index, name="index"),
|
||||||
path(
|
path(
|
||||||
"list-sessions/recent",
|
"session/list/recent",
|
||||||
views.list_sessions,
|
views.list_sessions,
|
||||||
{"filter": "recent"},
|
{"filter": "recent"},
|
||||||
name="list_sessions_recent",
|
name="list_sessions_recent",
|
||||||
),
|
),
|
||||||
path("add-game/", views.add_game, name="add_game"),
|
path("game/add", views.add_game, name="add_game"),
|
||||||
path("add-platform/", views.add_platform, name="add_platform"),
|
path("platform/add", views.add_platform, name="add_platform"),
|
||||||
path("add-session/", views.add_session, name="add_session"),
|
path("session/add", views.add_session, name="add_session"),
|
||||||
path(
|
path(
|
||||||
"add-session-for-purchase/<int:purchase_id>",
|
"session/add/for-purchase/<int:purchase_id>",
|
||||||
views.add_session,
|
views.add_session,
|
||||||
name="add_session_for_purchase",
|
name="add_session_for_purchase",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"session/clone/from-game/<int:session_id>",
|
"session/add/from-game/<int:session_id>",
|
||||||
views.new_session_from_existing_session,
|
views.new_session_from_existing_session,
|
||||||
{"template": "view_game.html#session-info"},
|
{"template": "view_game.html#session-info"},
|
||||||
name="view_game_start_session_from_session",
|
name="view_game_start_session_from_session",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"session/clone/from-list/<int:session_id>",
|
"session/add/from-list/<int:session_id>",
|
||||||
views.new_session_from_existing_session,
|
views.new_session_from_existing_session,
|
||||||
{"template": "list_sessions.html#session-row"},
|
{"template": "list_sessions.html#session-row"},
|
||||||
name="list_sessions_start_session_from_session",
|
name="list_sessions_start_session_from_session",
|
||||||
|
@ -43,7 +43,7 @@ urlpatterns = [
|
||||||
name="list_sessions_end_session",
|
name="list_sessions_end_session",
|
||||||
),
|
),
|
||||||
# path(
|
# path(
|
||||||
# "delete_session/by-id/<int:session_id>",
|
# "session/<int:session_id>/delete",
|
||||||
# views.delete_session,
|
# views.delete_session,
|
||||||
# name="delete_session",
|
# name="delete_session",
|
||||||
# ),
|
# ),
|
||||||
|
@ -52,9 +52,9 @@ urlpatterns = [
|
||||||
views.delete_purchase,
|
views.delete_purchase,
|
||||||
name="delete_purchase",
|
name="delete_purchase",
|
||||||
),
|
),
|
||||||
path("add-purchase/", views.add_purchase, name="add_purchase"),
|
path("purchase/add", views.add_purchase, name="add_purchase"),
|
||||||
path(
|
path(
|
||||||
"add-purchase-for-edition/<int:edition_id>",
|
"purchase/add/for-edition/<int:edition_id>",
|
||||||
views.add_purchase,
|
views.add_purchase,
|
||||||
name="add_purchase_for_edition",
|
name="add_purchase_for_edition",
|
||||||
),
|
),
|
||||||
|
@ -63,46 +63,46 @@ urlpatterns = [
|
||||||
views.related_purchase_by_edition,
|
views.related_purchase_by_edition,
|
||||||
name="related_purchase_by_edition",
|
name="related_purchase_by_edition",
|
||||||
),
|
),
|
||||||
path("add-edition/", views.add_edition, name="add_edition"),
|
path("edition/add", views.add_edition, name="add_edition"),
|
||||||
path(
|
path(
|
||||||
"add-edition-for-game/<int:game_id>",
|
"edition/add/for-game/<int:game_id>",
|
||||||
views.add_edition,
|
views.add_edition,
|
||||||
name="add_edition_for_game",
|
name="add_edition_for_game",
|
||||||
),
|
),
|
||||||
path("edit-edition/<int:edition_id>", views.edit_edition, name="edit_edition"),
|
path("edition/<int:edition_id>/edit", views.edit_edition, name="edit_edition"),
|
||||||
path("game/<int:game_id>/view", views.view_game, name="view_game"),
|
path("game/<int:game_id>/view", views.view_game, name="view_game"),
|
||||||
path("game/<int:game_id>/edit", views.edit_game, name="edit_game"),
|
path("game/<int:game_id>/edit", views.edit_game, name="edit_game"),
|
||||||
path("edit-platform/<int:platform_id>", views.edit_platform, name="edit_platform"),
|
path("platform/<int:platform_id>/edit", views.edit_platform, name="edit_platform"),
|
||||||
path("add-device/", views.add_device, name="add_device"),
|
path("device/add", views.add_device, name="add_device"),
|
||||||
path("edit-session/<int:session_id>", views.edit_session, name="edit_session"),
|
path("session/<int:session_id>/edit", views.edit_session, name="edit_session"),
|
||||||
path("edit-purchase/<int:purchase_id>", views.edit_purchase, name="edit_purchase"),
|
path("purchase/<int:purchase_id>/edit", views.edit_purchase, name="edit_purchase"),
|
||||||
path("list-sessions/", views.list_sessions, name="list_sessions"),
|
path("session/list", views.list_sessions, name="list_sessions"),
|
||||||
path(
|
path(
|
||||||
"list-sessions/by-purchase/<int:purchase_id>",
|
"session/list/by-purchase/<int:purchase_id>",
|
||||||
views.list_sessions,
|
views.list_sessions,
|
||||||
{"filter": "purchase"},
|
{"filter": "purchase"},
|
||||||
name="list_sessions_by_purchase",
|
name="list_sessions_by_purchase",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"list-sessions/by-platform/<int:platform_id>",
|
"session/list/by-platform/<int:platform_id>",
|
||||||
views.list_sessions,
|
views.list_sessions,
|
||||||
{"filter": "platform"},
|
{"filter": "platform"},
|
||||||
name="list_sessions_by_platform",
|
name="list_sessions_by_platform",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"list-sessions/by-game/<int:game_id>",
|
"session/list/by-game/<int:game_id>",
|
||||||
views.list_sessions,
|
views.list_sessions,
|
||||||
{"filter": "game"},
|
{"filter": "game"},
|
||||||
name="list_sessions_by_game",
|
name="list_sessions_by_game",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"list-sessions/by-edition/<int:edition_id>",
|
"session/list/by-edition/<int:edition_id>",
|
||||||
views.list_sessions,
|
views.list_sessions,
|
||||||
{"filter": "edition"},
|
{"filter": "edition"},
|
||||||
name="list_sessions_by_edition",
|
name="list_sessions_by_edition",
|
||||||
),
|
),
|
||||||
path(
|
path(
|
||||||
"list-sessions/by-ownership/<str:ownership_type>",
|
"session/list/by-ownership/<str:ownership_type>",
|
||||||
views.list_sessions,
|
views.list_sessions,
|
||||||
{"filter": "ownership_type"},
|
{"filter": "ownership_type"},
|
||||||
name="list_sessions_by_ownership_type",
|
name="list_sessions_by_ownership_type",
|
||||||
|
|
Loading…
Reference in New Issue