X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/548d9fe735b1c4f04c296f01a3bf73149f627005..1fe3eaa4206a136037d8f0fe1a08ef5b8dd47fde:/questions/urls.py?ds=sidebyside diff --git a/questions/urls.py b/questions/urls.py index 9930956..2f3c5f2 100755 --- a/questions/urls.py +++ b/questions/urls.py @@ -14,7 +14,7 @@ urlpatterns = patterns('', name="questions" ), url(r'^(?P\d+)/$', - DetailView.as_view(model=Question), + DetailView.as_view(queryset=Question.objects.filter(published=True)), name="questions_question"), url(r'^pytanie/$', QuestionFormView.as_view(),