diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2012-11-22 20:27:28 +0200 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2012-11-23 20:07:50 +0200 |
| commit | 90c7aa074095311862b71f3b4ee7220369785375 (patch) | |
| tree | 9e82dc1996f2636f2f0212d449fdae3631ab95fa /docs | |
| parent | 56f8e4b79c0559e1df5bf262a8ad73fc471d234c (diff) | |
[1.5.x] Fixed #18375 -- Removed dict-ordering dependency for F-expressions
F() expressions reuse joins like any lookup in a .filter() call -
reuse multijoins generated in the same .filter() call else generate
new joins. Also, lookups can now reuse joins generated by F().
This change is backwards incompatible, but it is required to prevent
dict randomization from generating different queries depending on
.filter() kwarg ordering. The new way is also more consistent in how
joins are reused.
Backpatch of 90b86291d022a09031d1df397d7aaebc30e435f7
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.5.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/1.5.txt b/docs/releases/1.5.txt index e26b927ae7..ca6b3acfd9 100644 --- a/docs/releases/1.5.txt +++ b/docs/releases/1.5.txt @@ -589,6 +589,12 @@ Miscellaneous :ref:`Q() expressions <complex-lookups-with-q>` and ``QuerySet`` combining where the operators are used as boolean AND and OR operators. +* In a ``filter()`` call, when :ref:`F() expressions <query-expressions>` + contained lookups spanning multi-valued relations, they didn't always reuse + the same relations as other lookups along the same chain. This was changed, + and now F() expressions will always use the same relations as other lookups + within the same ``filter()`` call. + * The :ttag:`csrf_token` template tag is no longer enclosed in a div. If you need HTML validation against pre-HTML5 Strict DTDs, you should add a div around it in your pages. |
