summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-rw-r--r--news/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/views.py b/news/views.py
index 62d30fd..ca4fdf9 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"