1
0
mirror of https://github.com/django/django.git synced 2025-10-27 15:46:10 +00:00

Fixed #23190 -- Made Paginator.page_range an iterator

This commit is contained in:
Rigel Di Scala
2015-06-06 20:24:02 +01:00
committed by Tim Graham
parent fd869cceac
commit b91a2a499f
5 changed files with 29 additions and 3 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 list(six.moves.range(1, self.num_pages + 1))
return six.moves.range(1, self.num_pages + 1)
page_range = property(_get_page_range)