symposion_app/vendor/symposion/teams/urls.py
Sachi King d95d66dac8 Taking one out of PyCon's (US) book
We're lock-step with symposion, and upstream is dead.
Vendor it.
2017-05-27 20:11:39 +10:00

25 lines
806 B
Python

from django.conf.urls import url
from .views import (
team_detail,
team_join,
team_leave,
team_apply,
team_promote,
team_demote,
team_accept,
team_reject
)
urlpatterns = [
# team specific
url(r"^(?P<slug>[\w\-]+)/$", team_detail, name="team_detail"),
url(r"^(?P<slug>[\w\-]+)/join/$", team_join, name="team_join"),
url(r"^(?P<slug>[\w\-]+)/leave/$", team_leave, name="team_leave"),
url(r"^(?P<slug>[\w\-]+)/apply/$", team_apply, name="team_apply"),
# membership specific
url(r"^promote/(?P<pk>\d+)/$", team_promote, name="team_promote"),
url(r"^demote/(?P<pk>\d+)/$", team_demote, name="team_demote"),
url(r"^accept/(?P<pk>\d+)/$", team_accept, name="team_accept"),
url(r"^reject/(?P<pk>\d+)/$", team_reject, name="team_reject"),
]