0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Removed unneeded StdDev.convert_value() and Variance.convert_value().

Seems unneeded since its introduction in
f59fd15c49.
This commit is contained in:
Sergey Fedoseev 2017-09-17 00:05:31 +05:00 committed by Tim Graham
parent 873858009c
commit 8f947730ca

View File

@ -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)