symposion_app/symposion/teams/urls.py

26 lines
806 B
Python
Raw Normal View History

2016-02-27 22:54:42 +00:00
from django.conf.urls import url
2012-07-28 22:30:00 +00:00
2016-02-27 22:54:42 +00:00
from .views import (
team_detail,
team_join,
team_leave,
team_apply,
team_promote,
team_demote,
team_accept,
team_reject
)
urlpatterns = [
2012-08-02 23:09:44 +00:00
# team specific
2016-02-27 22:54:42 +00:00
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"),
2014-07-05 13:11:43 +00:00
2012-08-02 23:09:44 +00:00
# membership specific
2016-02-27 22:54:42 +00:00
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"),
]