add opponent views and forms
This commit is contained in:
@@ -2,7 +2,13 @@ from allauth.socialaccount.providers.oauth2.urls import default_urlpatterns
|
||||
from django.urls import include, path
|
||||
|
||||
from .provider import TeamsnapProvider
|
||||
from .views import PreferencesFormView, schedule_view, view_event
|
||||
from .views import (
|
||||
OpponentFormView,
|
||||
Opponents,
|
||||
PreferencesFormView,
|
||||
schedule_view,
|
||||
view_event,
|
||||
)
|
||||
|
||||
urlpatterns = default_urlpatterns(TeamsnapProvider)
|
||||
|
||||
@@ -17,4 +23,10 @@ urlpatterns += [
|
||||
),
|
||||
path("", include("teamsnap.lineup.urls")),
|
||||
path("", include("teamsnap.dashboard.urls")),
|
||||
path(
|
||||
"<int:team_id>/opponent/<int:opponent_id>/",
|
||||
OpponentFormView.as_view(),
|
||||
name="teamsnap_opponent",
|
||||
),
|
||||
path("<int:team_id>/opponents", Opponents.as_view(), name="teamsnap_opponents"),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user