summaryrefslogtreecommitdiff
path: root/docs/ref/models/queries.txt
AgeCommit message (Collapse)Author
2015-01-12Fixed #23878 -- Moved Query and Prefetch documentationNg Zhi An
2014-11-15Fixed #14030 -- Allowed annotations to accept all expressionsJosh Smeaton
2014-04-08Fixed #22405 -- Fixed string error in models/queries docs.Anubhav Joshi
2013-11-07Fixed #17001 -- Custom querysets for prefetch_related.Loic Bistuer
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-10-28Fixed #21344 -- Typo in docs/ref/models/queries.txtTim Graham
2013-10-22Fixed #17027 -- Added support for the power operator in F expressions.Florian Hahn
Thanks dan at dlo.me for the initial patch. - Added __pow__ and __rpow__ to ExpressionNode - Added oracle and mysql specific power expressions - Added used-defined power function for sqlite
2013-09-06Consolidated documentation for F() and Q()evildmp