diff options
author | Simon Charette <charette.s@gmail.com> | 2018-03-08 02:06:19 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-03-08 13:30:41 -0500 |
commit | 277ed072094ad87fc6b2c4669f21d43b1f39043c (patch) | |
tree | def44c83f6d3919a41d5c027ee693418d80c063d /docs | |
parent | fd9398816e14554b52362f1152349da832fab4b1 (diff) | |
download | django-277ed072094ad87fc6b2c4669f21d43b1f39043c.tar.gz |
Fixed #29195 -- Fixed Exists.output_field resolution on single-valued queries.
The Subquery class which Exists inherits from defaulted to using single-valued
querie's field if no output_field was explicitly specified on initialization
which was bypassing the Exists.output_field defined at the class level.
Moving Subquery's dynamic output_field resolution to _resolve_output_field
should make sure the fallback logic is only performed if required.
Regression in 08654a99bbdd09049d682ae57cc94241534b29f0.
Thanks Oli Warner for the detailed report.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/releases/2.0.4.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/releases/2.0.4.txt b/docs/releases/2.0.4.txt index dcfcc42f47..222b2360a5 100644 --- a/docs/releases/2.0.4.txt +++ b/docs/releases/2.0.4.txt @@ -9,4 +9,5 @@ Django 2.0.4 fixes several bugs in 2.0.3. Bugfixes ======== -* ... +* Fixed a crash when filtering with an ``Exists()`` annotation of a queryset + containing a single field (:ticket:`29195`). |