diff options
Diffstat (limited to 'news')
-rw-r--r-- | news/views.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/news/views.py b/news/views.py index 2fe3743..0b7b379 100644 --- a/news/views.py +++ b/news/views.py @@ -14,7 +14,8 @@ def view(request, newsid): #TODO: May as well use a date-based list here sometime def list(request): - return list_detail.object_list(request, News.objects.all(), + return list_detail.object_list(request, + News.objects.all().select_related('author').defer('content'), template_name="news/list.html", template_object_name="news") |