mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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:
committed by
Tim Graham
parent
851ef09db9
commit
bb91c0a4dc
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user