~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlpoll/urls.py

  • Committer: franku
  • Author(s): GunChleoc
  • Date: 2016-12-13 18:30:38 UTC
  • mfrom: (438.1.6 pyformat_util)
  • Revision ID: somal@arcor.de-20161213183038-5cgmvfh2fkgmoc1s
adding a script to run pyformat over the code base

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
from . import views
8
8
from django.views.generic.dates import ArchiveIndexView
9
9
 
10
 
#delete this
 
10
# delete this
11
11
info_dict = {
12
12
    'queryset': Poll.objects.all()
13
13
}
14
14
 
15
15
urlpatterns = [
16
 
    url(r'^$', ArchiveIndexView.as_view(model=Poll,date_field="pub_date", template_name="wlpoll/poll_list.html"),name="wlpoll_archive"),
17
 
    url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='wlpoll_detail'),
18
 
    url(r'(?P<object_id>\d+)/vote/$', views.vote, name="wlpoll_vote"),
 
16
    url(r'^$', ArchiveIndexView.as_view(model=Poll, date_field='pub_date',
 
17
                                        template_name='wlpoll/poll_list.html'), name='wlpoll_archive'),
 
18
    url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(),
 
19
        name='wlpoll_detail'),
 
20
    url(r'(?P<object_id>\d+)/vote/$', views.vote, name='wlpoll_vote'),
19
21
]
20