Add MultiObjectPaginator, which can paginate across different types of objects
|Reported by:||Adrian Holovaty||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||no|
I've had this lying around for the past couple of months. Pasting it here because I don't have time to continue working on it.
This introduces a
MultiObjectPaginator class, which is like
ObjectPaginator but paginates across different types of objects. For example, if paginating across books and CDs, it would take care of displaying books first, then CDs (or vice versa, depending on the ordering preference), and it would handle pagination properly.