django/django
Anssi Kääriäinen 69597e5bcc Fixed #10790 -- Refactored sql.Query.setup_joins()
This is a rather large refactoring. The "lookup traversal" code was
splitted out from the setup_joins. There is now names_to_path() method
which does the lookup traveling, the actual work of setup_joins() is
calling names_to_path() and then adding the joins found into the query.

As a side effect it was possible to remove the "process_extra"
functionality used by genric relations. This never worked for left
joins. Now the extra restriction is appended directly to the join
condition instead of the where clause.

To generate the extra condition we need to have the join field
available in the compiler. This has the side-effect that we need more
ugly code in Query.__getstate__ and __setstate__ as Field objects
aren't pickleable.

The join trimming code got a big change - now we trim all direct joins
and never trim reverse joins. This also fixes the problem in #10790
which was join trimming in null filter cases.
2012-12-16 17:23:26 +02:00
..
bin Fixed #18978 -- Moved cleanup command to sessions. 2012-10-27 18:31:00 +02:00
conf Fixed #19015 -- Removed ISO formats from localized formats.py 2012-12-01 14:15:06 +01:00
contrib Fixed #10790 -- Refactored sql.Query.setup_joins() 2012-12-16 17:23:26 +02:00
core Edited the middleware doc for completeness, clarity, and consistency. 2012-12-09 22:30:01 +01:00
db Fixed #10790 -- Refactored sql.Query.setup_joins() 2012-12-16 17:23:26 +02:00
dispatch Fixed #18963 -- Used a subclass-friendly pattern 2012-11-03 22:07:35 +01:00
forms Fixed #18574 -- Make BaseFormSet.is_valid call its underlying forms' is_valid 2012-12-06 20:00:56 +01:00
http Fixed a security issue in get_host. 2012-12-10 22:11:40 +01:00
middleware Fixed #19347 -- Removed unused variable definition in FetchFromCacheMiddleware 2012-12-01 13:52:26 +01:00
shortcuts Fixed #19432 -- Provided better error message for get_object_or_404 2012-12-12 22:05:00 +01:00
template Fixed #19392 -- Improved error for old-style url tags with dashes. 2012-12-09 16:17:56 +01:00
templatetags Fixed #19088 -- Always escape % inside blocktrans tag 2012-10-23 18:49:22 +02:00
test Fixed #19462 -- Made assertQuerysetEqual detect undefined ordering 2012-12-13 13:33:11 +02:00
utils Fixed a couple of docstring typos. 2012-12-15 10:22:22 -03:00
views Fixed #18856 -- Ensured that redirects can't be poisoned by malicious users. 2012-12-10 22:11:39 +01:00
__init__.py Advanced version identifiers for 1.6 cycle. 2012-10-26 22:01:34 -03:00