django1/django/db
Simon Charette 277ed07209 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 08654a99bb.

Thanks Oli Warner for the detailed report.
2018-03-08 13:30:41 -05:00
..
backends Refs #28459 -- Improved performance of time difference expressions on MySQL. 2018-03-01 14:42:21 +05:00
migrations Refs #28814 -- Fixed migrations crash with namespace packages on Python 3.7. 2018-02-05 13:29:32 -05:00
models Fixed #29195 -- Fixed Exists.output_field resolution on single-valued queries. 2018-03-08 13:30:41 -05:00
__init__.py Refs #23919 -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
transaction.py Fix a typo in django/db/transaction.py 2017-04-19 16:36:06 +02:00
utils.py Refs #23919 -- Used "raise from" instead of __cause__ in reraising backend-specific database exceptions. 2017-04-25 08:29:54 +02:00