Changes between Initial Version and Version 1 of Ticket #14218
- Timestamp:
- Sep 2, 2010, 1:40:15 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14218 – Description
initial v1 1 1 Right now, when you want to iter into all the pages of a Paginator object you to use the page_range function. It would be more logical and naturel to use the normal python of doing that by implementing the __iter__ function like that: 2 2 {{{ 3 3 def __iter__(self): 4 4 for page_num in self.page_range: 5 5 yield self.page(page_num) 6 }}}