This adds '#' as a field lookup that supports a few things:
Can be used in order_by() to first order by QuerySet, then follow the other field orderings. (This is useful to get a more optimal code path when iterating over the values in a QuerySetSequence.)
Can be used in filter() / exclude() / get() to limit the QuerySets in use (by their order). This can be combined with normal field lookups, e.g. #__gt to do QuerySets greater than some number.
This adds
'#'
as a field lookup that supports a few things:order_by()
to first order byQuerySet
, then follow the other field orderings. (This is useful to get a more optimal code path when iterating over the values in aQuerySetSequence
.)filter()
/exclude()
/get()
to limit theQuerySets
in use (by their order). This can be combined with normal field lookups, e.g.#__gt
to doQuerySets
greater than some number.Includes tests and documentation.