Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refix #13844 -- Made FloatField aggregates work on Python 2.6 + Postgres

Fixed a regression introduced in 59a6559.
  • Loading branch information...
commit 1930b899bd69fb084856257598ab5ddd8ee4e016 1 parent 8a1f439
Anssi Kääriäinen akaariai authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/db/backends/__init__.py
2  django/db/backends/__init__.py
View
@@ -885,6 +885,8 @@ def convert_values(self, value, field):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.