From 9ac4be5da0171cd19d4d3aeee912d0ea218d31ac Mon Sep 17 00:00:00 2001 From: jpic <jamespic@gmail.com> Date: Mon, 21 Dec 2015 11:42:02 +0100 Subject: [PATCH] Num_by_page dividable by 3 --- core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.py b/core/utils.py index efa1c662..27718802 100644 --- a/core/utils.py +++ b/core/utils.py @@ -25,7 +25,7 @@ def render_paginate_list(request, object_list, template_name): """ Render a paginated list of representatives """ - pagination_limits = (10, 20, 50, 100) + pagination_limits = (12, 24, 48, 96) num_by_page = request.GET.get('limit', unicode(pagination_limits[0])) num_by_page = int(num_by_page) if num_by_page.isdigit() else 1 paginator = Paginator(object_list, num_by_page) -- GitLab