Skip to content


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: 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/
2  django/db/backends/
@@ -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.