diff options
author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-08-10 03:02:16 +0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-08-09 18:02:16 -0400 |
commit | bb91c0a4dcad89ec9ad14306e9708d11ea385444 (patch) | |
tree | 3f57299faf0015be8200cd98ffbf2b375734e82c /django/db/backends/utils.py | |
parent | 851ef09db9fb505080d96149a3c64e6757eba0b4 (diff) | |
download | django-bb91c0a4dcad89ec9ad14306e9708d11ea385444.tar.gz |
Refs #4518 -- Removed handling of empty strings in typecast_decimal().
It's unclear if the original change was needed, but it seems unneeded now.
Reverted 6fc10f50b0c9b877fffcad4893056cb91fa66b4f.
Diffstat (limited to 'django/db/backends/utils.py')
-rw-r--r-- | django/db/backends/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/utils.py b/django/db/backends/utils.py index 5dd6d85486..e5b2d5235f 100644 --- a/django/db/backends/utils.py +++ b/django/db/backends/utils.py @@ -161,7 +161,7 @@ def typecast_timestamp(s): # does NOT store time zone information def typecast_decimal(s): - if s is None or s == '': + if s is None: return None return decimal.Decimal(s) |