from django.urls import include, path, re_path from pretalx.event.models.event import SLUG_REGEX from .views import ( AssigneeView, EnhancedSubmissionList, ExportView, JoinView, MayAdvanceView, MusicrateSettingsView, PresenterView, QRCodeView, RatingView, ScoreExportView, ) urlpatterns = [ re_path( rf"^orga/event/(?P{SLUG_REGEX})/", include( [ 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", ), path("scores/", ScoreExportView.as_view(), name="scores"), path("/", AssigneeView.as_view(), name="assignee"), ] ), ), ] ), ), re_path( rf"^(?P{SLUG_REGEX})/p/pretalx_musicrate/", include( [ path("", QRCodeView.as_view(), name="qrcode"), path("present//", PresenterView.as_view(), name="present"), path( "present//may-advance", MayAdvanceView.as_view(), name="may_advance", ), path("/", JoinView.as_view(), name="join"), path("//", RatingView.as_view(), name="rating"), ] ), ), ]