Loading django/db/backends/__init__.py +2 −0 Original line number Diff line number Diff line Loading @@ -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 Loading
django/db/backends/__init__.py +2 −0 Original line number Diff line number Diff line Loading @@ -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