Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Commit

Permalink
Force convert range to list for python3 compatible
Browse files Browse the repository at this point in the history
Resolve PR #32
  • Loading branch information
atugushev committed Jan 2, 2016
1 parent b401bf0 commit b180263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linaro_django_pagination/templatetags/pagination_tags.py
Expand Up @@ -268,7 +268,7 @@ def paginate(context, window=DEFAULT_WINDOW, margin=DEFAULT_MARGIN):
paginator = context['paginator']
page_obj = context['page_obj']
page_suffix = context.get('page_suffix', '')
page_range = paginator.page_range
page_range = list(paginator.page_range)
# Calculate the record range in the current page for display.
records = {'first': 1 + (page_obj.number - 1) * paginator.per_page}
records['last'] = records['first'] + paginator.per_page - 1
Expand Down

0 comments on commit b180263

Please sign in to comment.