1
0
mirror of https://github.com/django/django.git synced 2024-12-25 02:26:12 +00:00
django/docs/ref
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
..
class-based-views Fixed typos in documentation. 2013-11-06 10:47:07 +01:00
contrib Fixed typos in documentation. 2013-11-06 10:47:07 +01:00
files Fixed #21219 -- Added a way to set different permission for static files. 2013-10-24 17:40:01 -04:00
forms Fixed #8620 -- Updated the Form metaclass to support excluding fields by shadowing them. 2013-10-14 22:42:33 +07:00
models Fixed #17001 -- Custom querysets for prefetch_related. 2013-11-07 14:49:49 +02:00
templates Fixed another typo introduced by b914991b37. 2013-11-06 10:22:29 +01:00
clickjacking.txt Changed the doc to use gender-neutral pronouns when possible. 2013-10-02 16:41:04 +02:00
databases.txt Fixed typos in documentation. 2013-11-06 10:47:07 +01:00
django-admin.txt Django should be capitalized in text 2013-11-02 20:15:40 +01:00
exceptions.txt
index.txt
middleware.txt Fixed #19277 -- Added LocaleMiddleware.response_redirect_class 2013-10-03 16:15:29 -04:00
request-response.txt Fixed #18659 -- Deprecated request.REQUEST and MergeDict 2013-10-17 09:42:28 -04:00
settings.txt Fixed #21219 -- Added a way to set different permission for static files. 2013-10-24 17:40:01 -04:00
signals.txt Removed extra p (topppings->toppings) 2013-09-23 19:24:40 -04:00
template-response.txt Fixed #21154 -- Updated TemplateResponse docs to better explain context. 2013-09-30 10:19:56 -04:00
unicode.txt
urlresolvers.txt
urls.txt A few doc additions for changes from d228c1192e. 2013-09-22 13:46:16 -03:00
utils.txt Fixed #21316 -- Documented that modifying safe strings makes them unsafe. 2013-10-30 08:11:31 -04:00
validators.txt
views.txt