Changeset - 1ed42c6c89f8
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 7 years ago 2015-03-04 23:07:30
bkuhn@ebb.org
Must extract paginate_by from kwargs to use it.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/blog/views.py
Show inline comments
...
 
@@ -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')
0 comments (0 inline, 0 general)