kadenios/elections/urls.py

11 lines
393 B
Python
Raw Normal View History

2020-11-20 17:46:53 +01:00
from django.urls import path
2020-12-18 00:19:18 +01:00
2020-11-20 17:46:53 +01:00
from . import views
urlpatterns = [
path("create/", views.ElectionCreateView.as_view(), name="election.create"),
path("update/<int:pk>", views.ElectionUpdateView.as_view(), name="election.update"),
path("view/<int:pk>", views.ElectionView.as_view(), name="election.view"),
2020-12-18 00:19:18 +01:00
path("vote/<int:pk>", views.VoteView.as_view(), name="election.vote"),
2020-11-20 17:46:53 +01:00
]