django/tests/aggregation
Étienne Beaulé 4b6dfe1622 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.
2019-06-05 08:06:26 +02:00
..
__init__.py
models.py Refs #23919 -- Removed python_2_unicode_compatible decorator usage 2017-01-18 13:44:34 +01:00
test_filter_argument.py Fixed #30542 -- Fixed crash of numerical aggregations with filter. 2019-06-05 08:06:26 +02:00
tests.py Fixed #30158 -- Avoided unnecessary subquery group by on aggregation. 2019-03-21 18:48:41 -04:00