X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/63ab75370a66f0c255e926404fe198dfcd74b880..6273ef15c02410d5b5cd94a2c120e8bf2e2b20aa:/questions/urls.py?ds=inline diff --git a/questions/urls.py b/questions/urls.py index 2f3c5f2..3073290 100755 --- a/questions/urls.py +++ b/questions/urls.py @@ -3,14 +3,13 @@ # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # from django.conf.urls import patterns, url -from django.views.generic import DetailView, ListView, TemplateView +from django.views.generic import DetailView, TemplateView from .models import Question -from .views import QuestionFormView +from .views import QuestionFormView, QuestionListView urlpatterns = patterns('', url(r'^$', - ListView.as_view(queryset=Question.objects.filter(published=True - ).order_by('-published_at')), + QuestionListView.as_view(), name="questions" ), url(r'^(?P\d+)/$',