django1/django/db/models/sql
Anssi Kääriäinen 90c7aa0740 [1.5.x] Fixed #18375 -- Removed dict-ordering dependency for F-expressions
F() expressions reuse joins like any lookup in a .filter() call -
reuse multijoins generated in the same .filter() call else generate
new joins. Also, lookups can now reuse joins generated by F().

This change is backwards incompatible, but it is required to prevent
dict randomization from generating different queries depending on
.filter() kwarg ordering. The new way is also more consistent in how
joins are reused.

Backpatch of 90b86291d0
2012-11-23 20:07:50 +02:00
..
__init__.py Remove all relative imports. We have always been at war with relative imports. 2011-10-18 00:47:49 +00:00
aggregates.py Fixed #17728 -- When filtering an annotation, ensured the values used in the filter are properly converted to their database representation. This bug was particularly visible with timezone-aware DateTimeFields. Thanks gg for the report and Carl for the review. 2012-02-22 19:40:27 +00:00
compiler.py [1.5.x] Fixed #19058 -- Fixed Oracle GIS crash 2012-11-15 16:11:22 +02:00
constants.py Internal refactoring; moving LOOKUP_SEP up one level. 2012-09-08 19:51:36 -04:00
datastructures.py Refactored the empty/full result logic in WhereNode.as_sql() 2012-07-01 17:21:34 +03:00
expressions.py [1.5.x] Fixed #18375 -- Removed dict-ordering dependency for F-expressions 2012-11-23 20:07:50 +02:00
query.py [1.5.x] Fixed #18375 -- Removed dict-ordering dependency for F-expressions 2012-11-23 20:07:50 +02:00
subqueries.py Fixed regression caused by #19102 2012-10-25 19:13:10 +03:00
where.py [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00