diff --git a/core/utils.py b/core/utils.py index e412a4cd0dc3e18a5058d17f49cb6fbb8e2db157..efa1c6621c6ddf7d792cb4899a85b22a298d0345 100644 --- a/core/utils.py +++ b/core/utils.py @@ -26,7 +26,7 @@ def render_paginate_list(request, object_list, template_name): Render a paginated list of representatives """ pagination_limits = (10, 20, 50, 100) - num_by_page = request.GET.get('limit', '30') + 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) number = request.GET.get('page', '1')