1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

Fixed #23088 -- Used six range type in Paginator.page_range.

This commit is contained in:
Moayad Mardini
2014-07-25 11:04:58 +03:00
parent bb395a15ba
commit 6508db2ff9
2 changed files with 8 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ class Paginator(object):
Returns a 1-based range of pages for iterating through within
a template for loop.
"""
return range(1, self.num_pages + 1)
return six.moves.range(1, self.num_pages + 1)
page_range = property(_get_page_range)