2020-04-29 14:26:52 +00:00
|
|
|
from django.urls import path
|
|
|
|
|
2020-05-04 22:11:38 +00:00
|
|
|
from .views import TournamentListView, TournamentCreateView, TournamentDetailView, TournamentUpdateView, \
|
2020-05-05 02:45:38 +00:00
|
|
|
TeamDetailView, TeamUpdateView, AddOrganizerView, SolutionsView, SolutionsOrgaListView, SynthesesView, \
|
|
|
|
SynthesesOrgaListView, PoolListView, PoolCreateView, PoolDetailView
|
2020-04-29 14:26:52 +00:00
|
|
|
|
|
|
|
app_name = "tournament"
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('list/', TournamentListView.as_view(), name="list"),
|
2020-05-04 18:21:53 +00:00
|
|
|
path("add/", TournamentCreateView.as_view(), name="add"),
|
2020-04-29 14:59:59 +00:00
|
|
|
path('<int:pk>/', TournamentDetailView.as_view(), name="detail"),
|
2020-05-04 18:21:53 +00:00
|
|
|
path('<int:pk>/update/', TournamentUpdateView.as_view(), name="update"),
|
2020-04-29 15:58:11 +00:00
|
|
|
path('team/<int:pk>/', TeamDetailView.as_view(), name="team_detail"),
|
2020-05-04 18:21:53 +00:00
|
|
|
path('team/<int:pk>/update/', TeamUpdateView.as_view(), name="team_update"),
|
|
|
|
path("add-organizer/", AddOrganizerView.as_view(), name="add_organizer"),
|
2020-04-30 18:11:03 +00:00
|
|
|
path("solutions/", SolutionsView.as_view(), name="solutions"),
|
|
|
|
path("all-solutions/", SolutionsOrgaListView.as_view(), name="all_solutions"),
|
2020-05-04 22:11:38 +00:00
|
|
|
path("syntheses/", SynthesesView.as_view(), name="syntheses"),
|
|
|
|
path("all_syntheses/", SynthesesOrgaListView.as_view(), name="all_syntheses"),
|
2020-05-05 02:45:38 +00:00
|
|
|
path("pools/", PoolListView.as_view(), name="pools"),
|
|
|
|
path("pools/add/", PoolCreateView.as_view(), name="create_pool"),
|
|
|
|
path("pool/<int:pk>/", PoolDetailView.as_view(), name="pool_detail"),
|
2020-04-29 14:26:52 +00:00
|
|
|
]
|