django1/django/contrib/contenttypes
Loic Bistuer f51c1f5900 Fixed #17001 -- Custom querysets for prefetch_related.
This patch introduces the Prefetch object which allows customizing prefetch
operations.

This enables things like filtering prefetched relations, calling select_related
from a prefetched relation, or prefetching the same relation multiple times
with different querysets.

When a Prefetch instance specifies a to_attr argument, the result is stored
in a list rather than a QuerySet. This has the fortunate consequence of being
significantly faster. The preformance improvement is due to the fact that we
save the costly creation of a QuerySet instance.

Thanks @akaariai for the original patch and @bmispelon and @timgraham
for the reviews.
2013-11-07 14:49:49 +02:00
..
locale Updated translation templates and removed en translations 2013-05-02 16:25:23 +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 #17001 -- Custom querysets for prefetch_related. 2013-11-07 14:49:49 +02:00
management.py Fixed #20989 -- Removed useless explicit list comprehensions. 2013-08-30 10:57:51 -04:00
models.py Fixed flake8 E251 violations 2013-11-03 03:22:11 -06:00
tests.py Fixed flake8 E251 violations 2013-11-03 03:22:11 -06:00
views.py Started attackign the next flake8 violation 2013-10-31 08:42:28 -07:00