mirror of
https://github.com/django/django.git
synced 2025-02-08 00:16:31 +00:00
Refix #13844 -- Made FloatField aggregates work on Python 2.6 + Postgres
Fixed a regression introduced in 59a655988ee95e4b4e4646cebea88b620d8fcdd2.
This commit is contained in:
parent
8a1f439d3a
commit
1930b899bd
@ -885,6 +885,8 @@ class BaseDatabaseOperations(object):
|
||||
internal_type = field.get_internal_type()
|
||||
if internal_type == 'DecimalField':
|
||||
return value
|
||||
elif internal_type == 'FloatField':
|
||||
return float(value)
|
||||
elif (internal_type and (internal_type.endswith('IntegerField')
|
||||
or internal_type == 'AutoField')):
|
||||
return int(value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user