pretalx-musicrate/pretalx_musicrate/urls.py

62 lines
1.9 KiB
Python
Raw Normal View History

from django.urls import include, path, re_path
from pretalx.event.models.event import SLUG_REGEX
2023-12-13 23:58:00 +01:00
from .views import (
2024-02-13 18:39:25 +01:00
AssigneeView,
EnhancedSubmissionList,
2023-12-18 01:38:35 +01:00
ExportView,
JoinView,
MayAdvanceView,
MusicrateSettingsView,
PresenterView,
QRCodeView,
2023-12-16 01:05:05 +01:00
RatingView,
2024-12-09 22:32:50 +01:00
ScoreExportView,
)
2023-12-13 23:58:00 +01:00
urlpatterns = [
re_path(
rf"^orga/event/(?P<event>{SLUG_REGEX})/",
2023-12-18 01:38:35 +01:00
include(
[
2024-02-13 18:39:25 +01:00
path(
"settings/p/pretalx_musicrate/",
MusicrateSettingsView.as_view(),
name="settings.musicrate",
),
path(
"p/pretalx_musicrate/",
include(
[
path("export/", ExportView.as_view(), name="export"),
path(
"list/",
EnhancedSubmissionList.as_view(),
name="enhanced_list",
),
2024-12-09 22:32:50 +01:00
path("scores/", ScoreExportView.as_view(), name="scores"),
2024-02-14 00:49:19 +01:00
path("<code>/", AssigneeView.as_view(), name="assignee"),
2024-02-13 18:39:25 +01:00
]
),
),
2023-12-18 01:38:35 +01:00
]
),
2023-12-13 23:58:00 +01:00
),
re_path(
rf"^(?P<event>{SLUG_REGEX})/p/pretalx_musicrate/",
2023-12-15 02:48:31 +01:00
include(
[
path("", QRCodeView.as_view(), name="qrcode"),
2023-12-15 17:12:12 +01:00
path("present/<code>/", PresenterView.as_view(), name="present"),
path(
"present/<code>/may-advance",
MayAdvanceView.as_view(),
name="may_advance",
),
2023-12-15 02:52:49 +01:00
path("<slug:token>/", JoinView.as_view(), name="join"),
2023-12-16 01:05:05 +01:00
path("<slug:token>/<code>/", RatingView.as_view(), name="rating"),
2023-12-15 02:48:31 +01:00
]
),
),
2023-12-13 23:58:00 +01:00
]