django/tests/regressiontests/queries
Anssi Kääriäinen 8c72aa2379 Fixed qs.order_by() join promotion for already existing joins
When order_by causes new joins to be added to the query, the joins must
be LEFT OUTER joins for nullable relations, otherwise the order_by
could cause the results to be altered. This commit fixes the logic to
only promote new joins, previously all joins in the order_by lookup
path were promoted.

Thanks to Bruno Desthuilliers for spotting this corner case.
2012-05-24 18:42:06 +03:00
..
__init__.py Merged the queryset-refactor branch into trunk. 2008-04-27 02:50:16 +00:00
models.py Fixed qs.order_by() join promotion for already existing joins 2012-05-24 18:42:06 +03:00
tests.py Fixed qs.order_by() join promotion for already existing joins 2012-05-24 18:42:06 +03:00