summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAnssi Kääriäinen <anssi.kaariainen@thl.fi>2015-04-15 08:46:19 +0300
committerClaude Paroz <claude@2xlibre.net>2015-04-16 09:40:47 +0200
commitfb5c7748daa25a40bfc62834acb5731c71a6b713 (patch)
tree5877111da84c70ab16ff8c22563c5606d80d13f4 /docs
parentbcf700b4e3393d8e72920ae64aa421c5651f8935 (diff)
Fixed #24615 -- ordering by expression not part of SELECT
Fixed queries where an expression was used in order_by() but the expression wasn't in the query's select clause (for example the expression could be masked by .values() call) Thanks to Trac alias MattBlack85 for the report.
Diffstat (limited to 'docs')
-rw-r--r--docs/releases/1.8.1.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/releases/1.8.1.txt b/docs/releases/1.8.1.txt
index fd2140bbf0..976179c41e 100644
--- a/docs/releases/1.8.1.txt
+++ b/docs/releases/1.8.1.txt
@@ -49,3 +49,7 @@ Bugfixes
remove usage of referencing views by dotted path in
:func:`~django.conf.urls.url` which is deprecated in Django 1.8
(:ticket:`24635`).
+
+* Fixed queries where an expression was referenced in ``order_by()``, but wasn't
+ part of the select clause. An example query is
+ ``qs.annotate(foo=F('field')).values('pk').order_by('foo'))`` (:ticket:`24615`).