diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-09-17 00:05:31 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-16 15:05:31 -0400 |
| commit | 8f947730ca6a9e3e538a377e7993e17ce3663ee6 (patch) | |
| tree | 35b51490ba9db370fecceeace6d4ad74a5ba119e | |
| parent | 873858009c931d6e7bf979800cc0d16b5a71f24e (diff) | |
Removed unneeded StdDev.convert_value() and Variance.convert_value().
Seems unneeded since its introduction in
f59fd15c4928caf3dfcbd50f6ab47be409a43b01.
| -rw-r--r-- | django/db/models/aggregates.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/django/db/models/aggregates.py b/django/db/models/aggregates.py index 365a885b53..c91200ef7f 100644 --- a/django/db/models/aggregates.py +++ b/django/db/models/aggregates.py @@ -149,11 +149,6 @@ class StdDev(Aggregate): options = super()._get_repr_options() return dict(options, sample=self.function == 'STDDEV_SAMP') - def convert_value(self, value, expression, connection): - if value is None: - return value - return float(value) - class Sum(Aggregate): function = 'SUM' @@ -179,8 +174,3 @@ class Variance(Aggregate): def _get_repr_options(self): options = super()._get_repr_options() return dict(options, sample=self.function == 'VAR_SAMP') - - def convert_value(self, value, expression, connection): - if value is None: - return value - return float(value) |
