Opened 6 years ago

Closed 6 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: UI/UX:

Description (last modified by Alex)

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 6 years ago by Alex

  • Description modified (diff)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Reformatted, please use the preview button in the future.

comment:2 Changed 6 years ago by SmileyChris

  • Resolution set to wontfix
  • Status changed from new to closed

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

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