Skip to content
Browse files

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

Fixed a regression introduced in 59a6559.
  • Loading branch information...
1 parent 8a1f439 commit 1930b899bd69fb084856257598ab5ddd8ee4e016 @akaariai akaariai committed Aug 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 django/db/backends/__init__.py
View
2 django/db/backends/__init__.py
@@ -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)

0 comments on commit 1930b89

Please sign in to comment.
Something went wrong with that request. Please try again.