2016-12-20 20:03:52 +00:00
|
|
|
from django.conf.urls import url
|
2016-12-05 19:18:03 +00:00
|
|
|
|
|
|
|
from election.views import *
|
|
|
|
|
|
|
|
urlpatterns = [
|
2016-12-05 22:49:13 +00:00
|
|
|
url(r'^$', ElectionsListView.as_view(), name='list'),
|
2016-12-20 20:03:52 +00:00
|
|
|
url(r'^create$', ElectionCreateView.as_view(), name='create'),
|
|
|
|
url(r'^list/create$', ElectionListCreateView.as_view(), name='create_list'),
|
2016-12-20 22:08:47 +00:00
|
|
|
url(r'^role/create$', RoleCreateView.as_view(), name='create_role'),
|
|
|
|
url(r'^(?P<election_id>[0-9]+)/candidate$', CandidatureCreateView.as_view(), name='candidate'),
|
2016-12-14 17:10:15 +00:00
|
|
|
url(r'^(?P<election_id>[0-9]+)/detail$', ElectionDetailView.as_view(), name='detail'),
|
2016-12-05 22:49:13 +00:00
|
|
|
]
|