From 1ed42c6c89f81f27f7d5d02efe6bb22c7dd62d73 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 4 Mar 2015 15:07:30 -0800 Subject: [PATCH] Must extract paginate_by from kwargs to use it. --- www/conservancy/apps/blog/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/www/conservancy/apps/blog/views.py b/www/conservancy/apps/blog/views.py index c01c63d5..f560e561 100644 --- a/www/conservancy/apps/blog/views.py +++ b/www/conservancy/apps/blog/views.py @@ -66,6 +66,7 @@ def custom_index(request, queryset, *args, **kwargs): kwargs['queryset'] = queryset kwargs['extra_context'] = extra_context + paginate_by = kwargs.get('paginate_by', 6) # Show 6 news items per page, by default paginator = Paginator(queryset, paginate_by) page = request.GET.get('page')