diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2018-12-01 23:46:28 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-14 14:35:41 -0500 |
| commit | c690afb873cac8035a3cb3be7c597a5ff0e4b261 (patch) | |
| tree | 19d60b4ceaf53f86a9c1ba37b7e27ac080256f13 /docs/releases/2.2.txt | |
| parent | 3d5e0f8394688d40036e27cfcfac295e6fe62269 (diff) | |
Refs #28643 -- Changed Avg() to use NumericOutputFieldMixin.
Keeps precision instead of forcing DecimalField to FloatField.
Diffstat (limited to 'docs/releases/2.2.txt')
| -rw-r--r-- | docs/releases/2.2.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/releases/2.2.txt b/docs/releases/2.2.txt index 13f7617888..b96b0ed1ef 100644 --- a/docs/releases/2.2.txt +++ b/docs/releases/2.2.txt @@ -493,6 +493,9 @@ Miscellaneous * :djadmin:`runserver` no longer supports `pyinotify` (replaced by Watchman). +* The :class:`~django.db.models.Avg` aggregate function now returns a + ``Decimal`` instead of a ``float`` when the input is ``Decimal``. + .. _deprecated-features-2.2: Features deprecated in 2.2 |
