Allow filtering by game, edition, purchase from the session list

This commit is contained in:
2023-02-19 14:30:26 +01:00
parent 33939f631c
commit 938c82a395
5 changed files with 50 additions and 7 deletions

View File

@ -47,10 +47,22 @@ urlpatterns = [
{"filter": "platform"},
name="list_sessions_by_platform",
),
path(
"list-sessions/by-game/<int:game_id>",
views.list_sessions,
{"filter": "game"},
name="list_sessions_by_game",
),
path(
"list-sessions/by-edition/<int:edition_id>",
views.list_sessions,
{"filter": "edition"},
name="list_sessions_by_edition",
),
path(
"list-sessions/by-ownership/<str:ownership_type>",
views.list_sessions,
{"filter": "ownership_type"},
name="list_sessions_by_ownership_type",
),
]