summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
Diffstat (limited to 'news')
-rw-r--r--news/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/news/views.py b/news/views.py
index 3747211..cc16981 100644
--- a/news/views.py
+++ b/news/views.py
@@ -19,6 +19,7 @@ def view(request, newsid):
def list(request):
return list_detail.object_list(request,
News.objects.all().select_related('author').defer('content'),
+ paginate_by=50,
template_name="news/list.html",
template_object_name="news")