1
0
mirror of https://github.com/django/django.git synced 2025-02-12 18:36:41 +00:00
É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 c690afb873cac8035a3cb3be7c597a5ff0e4b261 and two following
commits.
2019-06-05 08:06:26 +02:00
..
2019-05-01 07:05:47 +02:00
2019-04-02 09:18:06 +02:00
2019-06-05 06:57:44 +02:00