from django.urls import path from . import views urlpatterns = [ # Admin views path("create/", views.ElectionCreateView.as_view(), name="election.create"), path("admin/", views.ElectionAdminView.as_view(), name="election.admin"), path( "mail-voters/", views.ElectionMailVotersView.as_view(), name="election.mail-voters", ), path( "upload-voters/", views.ElectionUploadVotersView.as_view(), name="election.upload-voters", ), path( "export-voters/", views.ExportVotersView.as_view(), name="election.export-voters", ), path( "delete-vote///", views.DeleteVoteView.as_view(), name="election.delete-vote", ), path("update/", views.ElectionUpdateView.as_view(), name="election.update"), path("tally/", views.ElectionTallyView.as_view(), name="election.tally"), path( "publish/", views.ElectionChangePublicationView.as_view(), name="election.publish", ), path( "archive/", views.ElectionArchiveView.as_view(), name="election.archive" ), # Question views path( "add-question/", views.AddQuestionView.as_view(), name="election.add-question", ), path( "mod-question/", views.ModQuestionView.as_view(), name="election.mod-question", ), path( "del-question/", views.DelQuestionView.as_view(), name="election.del-question", ), # Option views path( "add-option/", views.AddOptionView.as_view(), name="election.add-option", ), path( "mod-option/", views.ModOptionView.as_view(), name="election.mod-option", ), path( "del-option/", views.DelOptionView.as_view(), name="election.del-option", ), # Common views path("", views.ElectionListView.as_view(), name="election.list"), path("view/", views.ElectionView.as_view(), name="election.view"), path( "view//voters", views.ElectionVotersView.as_view(), name="election.voters", ), path("vote/", views.VoteView.as_view(), name="election.vote"), ]