Changes between Initial Version and Version 1 of Ticket #14218


Ignore:
Timestamp:
Sep 2, 2010, 1:40:15 PM (14 years ago)
Author:
Alex Gaynor
Comment:

Reformatted, please use the preview button in the future.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14218 – Description

    initial v1  
    11Right 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{{{
    33def __iter__(self):
    44    for page_num in self.page_range:
    55        yield self.page(page_num)
     6}}}
Back to Top