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:
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user