Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #4518 -- Added handling of empty strings in typecast_decimal() for

SQLite's benefit. Thanks, Richard House.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5450 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6fc10f50b0c9b877fffcad4893056cb91fa66b4f 1 parent 4a1dfe4
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/backends/util.py
View
2  django/db/backends/util.py
@@ -91,7 +91,7 @@ def typecast_boolean(s):
return str(s)[0].lower() == 't'
def typecast_decimal(s):
- if s is None:
+ if s is None or s == '':
return None
return decimal.Decimal(s)
Please sign in to comment.
Something went wrong with that request. Please try again.