django1/django/contrib/contenttypes
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
..
locale Updated base translation files 2012-10-15 11:17:06 +02:00
__init__.py MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. 2006-05-02 01:31:56 +00:00
generic.py Fixed #10790 -- Refactored sql.Query.setup_joins() 2012-12-16 17:23:26 +02:00
management.py Fixed #19806 -- Ensure that content types and permissions aren't created for swapped models. 2012-11-24 13:43:20 +08:00
models.py [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
tests.py Made more extensive use of get_current_site 2012-09-28 20:33:05 +02:00
views.py Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00