X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/548d9fe735b1c4f04c296f01a3bf73149f627005..af3e9caaf16b84899e825608d97d84431d8e9454:/questions/urls.py 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(),