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:
committed by
Tim Graham
parent
fd869cceac
commit
b91a2a499f
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user