diff options
Diffstat (limited to 'news')
-rw-r--r-- | news/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/news/views.py b/news/views.py index 62d30fde..ca4fdf97 100644 --- a/news/views.py +++ b/news/views.py @@ -18,7 +18,7 @@ class NewsForm(forms.ModelForm): class NewsDetailView(DetailView): - model = News + queryset = News.objects.all().select_related('author') template_name = "news/view.html" |