add schedule, view_event

This commit is contained in:
2022-06-02 10:33:34 -05:00
parent db020ee153
commit 598ebd6910
10 changed files with 344 additions and 9 deletions

View File

@@ -2,8 +2,17 @@ from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
from django.urls import path
from .provider import TeamsnapProvider
from .views import PreferencesFormView
from .views import PreferencesFormView, schedule_view, view_event
urlpatterns = default_urlpatterns(TeamsnapProvider)
urlpatterns += [path("preferences", PreferencesFormView.as_view(), name="preferences")]
urlpatterns += [
path("preferences/", PreferencesFormView.as_view(), name="preferences"),
path("<int:team_id>/schedule/", schedule_view, name="teamsnap_schedule"),
path("schedule/", schedule_view, name="teamsnap_schedule"),
path(
"<int:team_id>/schedule/view_event/<int:event_id>",
view_event,
name="teamsnap_view_event",
),
]