[patch] Make paginator work with lists and support orphans
|Reported by:||Chris Beaven||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
(splitting #2093 into two seperate tickets)
There's no orphan feature for the paginator. For example:
22 records, num_per_page=10, orphan=2 --> pages==2, len(self.get_page(1))==12
The paginator should work with lists too.
The patch fixes these and also provides more accurate validation.
Change History (7)
comment:1 Changed 11 years ago by
|Summary:||[patch] Make Paginator works with lists and support orphans → [patch] Make paginator work with lists and support orphans|