1
0
mirror of https://github.com/django/django.git synced 2025-04-11 11:02:22 +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
..
2017-02-03 08:01:45 -05:00
2013-10-10 16:49:20 -04:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2015-01-02 19:20:18 -05:00
2014-09-02 21:34:29 -04:00
2015-01-27 11:48:04 -05:00
2015-05-01 16:24:39 -04:00
2015-05-20 13:48:06 -04:00
2015-10-03 19:31:45 -04:00
2015-11-04 17:48:49 +01:00
2016-05-02 18:16:36 -04:00
2016-06-04 19:24:51 -04:00
2016-09-01 16:24:46 -04:00
2017-01-04 13:20:01 -05:00
2017-05-06 08:19:41 -04:00
2017-06-01 11:09:51 -04:00
2017-07-01 19:13:35 -04:00
2017-08-01 08:08:18 -04:00
2017-10-05 14:13:32 -04:00
2017-11-01 21:11:38 -04:00
2018-07-02 10:12:20 +02:00
2018-10-01 09:34:57 +02:00
2018-12-03 15:14:58 +01:00
2018-06-28 11:07:37 -04:00
2018-08-31 10:12:51 +02:00
2018-12-03 17:29:46 +01: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