Filter Next/Previous by Relation
ghickman opened this issue · comments
George Hickman commented
next()
& previous()
methods on Orderable
filter all orderable models so update them to take an optional relation and filter on.
smcoll commented
+1. It would be great to have models orderable by relation. That's my primary use case.
Marc Tamlyn commented
These methods now use get_filtered_manager()
so they will respect Meta.unique_together
. I think this can be closed.
Charlie Denton commented