django1/django/db
Étienne Beaulé 4e6f0024f1 [2.2.x] Fixed #30542 -- Fixed crash of numerical aggregations with filter.
Filters in annotations crashed when used with numerical-type
aggregations (i.e. Avg, StdDev, and Variance). This was caused as the
source expressions no not necessarily have an output_field (such as the
filter field), which lead to an AttributeError: 'WhereNode' object has
no attribute output_field.

Thanks to Chuan-Zheng Lee for the report.

Regression in c690afb873 and two following
commits.

Backport of 4b6dfe1622 from master.
2019-06-05 09:15:21 +02:00
..
backends [2.2.x] Fixed #30408 -- Fixed crash when adding check constraints with LIKE operator on Oracle and PostgreSQL. 2019-04-30 08:54:30 +02:00
migrations [2.2.x] Fixed #30350 -- Prevented recreation of migration for operations with a range object. 2019-04-14 12:58:34 +02:00
models [2.2.x] Fixed #30542 -- Fixed crash of numerical aggregations with filter. 2019-06-05 09:15:21 +02:00
__init__.py [2.2.x] Removed an outdated comment on DefaultConnectionProxy. 2019-02-20 11:31:57 -05:00
transaction.py Refs #27025 -- Removed obsolete sqlite3 transaction management workaround for Python 3.6+. 2018-10-25 19:54:48 -04:00
utils.py Fixed #30071 -- Fixed error message when a 'default' database isn't provided. 2019-01-09 10:58:37 -05:00