summaryrefslogtreecommitdiff
path: root/django/db/models/functions/mixins.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-12/+17
|
* Bumped minimum isort version to 5.1.0.David Smith2020-07-301-1/+3
| | | | | Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable.
* Fixed #30542 -- Fixed crash of numerical aggregations with filter.Étienne Beaulé2019-06-051-4/+4
| | | | | | | | | | | | | 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.
* Refs #28643 -- Extracted DurationField logic for Avg() and Sum() into mixin.Nick Pope2019-01-141-0/+19
| | | | Also addresses Sum() not handling the filter option correctly.
* Refs #28643 -- Changed Avg() to use NumericOutputFieldMixin.Nick Pope2019-01-141-3/+7
| | | | Keeps precision instead of forcing DecimalField to FloatField.
* Refs #28643 -- Moved db function mixins to a separate module.Nick Pope2019-01-141-0/+27