bornhack-website/src/teams/urls.py

74 lines
2 KiB
Python
Raw Normal View History

2017-11-24 21:06:23 +00:00
from django.conf.urls import url, include
2017-11-23 22:09:14 +00:00
from .views import *
urlpatterns = [
url(
r'^$',
TeamListView.as_view(),
name='list'
),
url(
2017-11-24 21:06:23 +00:00
r'^members/', include([
url(
r'^(?P<pk>[0-9]+)/remove/$',
TeamMemberRemoveView.as_view(),
name='teammember_remove',
),
url(
r'^(?P<pk>[0-9]+)/approve/$',
TeamMemberApproveView.as_view(),
name='teammember_approve',
),
]),
),
url(
r'^(?P<team_slug>[-_\w+]+)/', include([
url(
r'^$',
TeamDetailView.as_view(),
name='detail'
),
url(
r'^join/$',
TeamJoinView.as_view(),
name='join'
),
url(
r'^leave/$',
TeamLeaveView.as_view(),
name='leave'
),
url(
r'^manage/$',
TeamManageView.as_view(),
name='manage'
),
url(
r'^tasks/', include([
url(
r'^create/$',
TaskCreateView.as_view(),
name='task_create',
),
url(
2017-11-25 12:02:32 +00:00
r'^(?P<slug>[-_\w+]+)/', include([
url(
r'^$',
TaskDetailView.as_view(),
name='task_detail',
),
url(
r'^update/$',
TaskUpdateView.as_view(),
name='task_update',
),
]),
2017-11-24 21:06:23 +00:00
),
2017-11-25 12:02:32 +00:00
2017-11-24 21:06:23 +00:00
]),
),
]),
2017-11-23 22:09:14 +00:00
),
]