"""URLs for election app"""
from django.conf.urls import url

from election import views


# pylint: disable=invalid-name
urlpatterns = [
    url(r'^$',
        views.OrgElectionListView.as_view(), name='list_elections'),
    url(r'^(?P<slug>[-\w]+)/$',
        views.OrgElectionDetailView.as_view(),
        name='view_election'),
    url(r'^(?P<slug>[-\w]+)/update_notification/$',
        views.OrgElectionNotificationUpdateView.as_view(),
        name='update_election_notification'),
    url(r'^(?P<slug>[-\w]+)/update_wrapper/$',
        views.OrgElectionWrapperUpdateView.as_view(),
        name='update_election_wrapper'),
]
