Commit 9ac4be5d authored by Jamesie Pic's avatar Jamesie Pic

Num_by_page dividable by 3

parent 7a234759
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment