Opened 8 years ago

Closed 8 years ago

#14218 closed (wontfix)

Paginator just implement the __iter__ function

Reported by: mlhamel Owned by: nobody
Component: Uncategorized Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Alex Gaynor)

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:

def __iter__(self):
    for page_num in self.page_range:

Change History (2)

comment:1 Changed 8 years ago by Alex Gaynor

Description: modified (diff)

Reformatted, please use the preview button in the future.

comment:2 Changed 8 years ago by Chris Beaven

Resolution: wontfix
Status: newclosed

I'm not sure that's common enough functionality to worry about.

Note: See TracTickets for help on using tickets.
Back to Top