<gh_stars>0
"""
Urls for poll app
"""
from django.conf.urls import url
from .views import (
    vote,
    CreateUserPollView,
    DeleteUserPollView,
    PollListView,
    UserPollsView,
)

urlpatterns = [
    url(r'^(?P<poll_id>\d+)/vote/$',
        vote,
        name="poll_vote"),
    url(r'^brukeravstemninger/$',
        PollListView.as_view(),
        name="user_polls"),
    url(r'^bruker/$',
        UserPollsView.as_view(),
        name="poll_user"),
    url(r'^bruker/ny/$',
        CreateUserPollView.as_view(),
        name="poll_user_create"),
    url(r'^bruker/slett/(?P<pk>[\d]+)$',
        DeleteUserPollView.as_view(),
        name="poll_user_delete"),
]

"""
Urls for poll app
"""
from django.conf.urls import url
from .views import (
    vote,
    CreateUserPollView,
    DeleteUserPollView,
    PollListView,
    UserPollsView,
)

urlpatterns = [
    url(r'^(?P<poll_id>\d+)/vote/$',
        vote,
        name="poll_vote"),
    url(r'^brukeravstemninger/$',
        PollListView.as_view(),
        name="user_polls"),
    url(r'^bruker/$',
        UserPollsView.as_view(),
        name="poll_user"),
    url(r'^bruker/ny/$',
        CreateUserPollView.as_view(),
        name="poll_user_create"),
    url(r'^bruker/slett/(?P<pk>[\d]+)$',
        DeleteUserPollView.as_view(),
        name="poll_user_delete"),
]
Urls for poll app