1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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 6fc10f50b0.
This commit is contained in:
Sergey Fedoseev 2017-08-10 03:02:16 +05:00 committed by Tim Graham
parent 851ef09db9
commit bb91c0a4dc

View File

@ -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)