mirror of
https://github.com/django/django.git
synced 2025-03-03 13:34:26 +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 6fc10f50b0c9b877fffcad4893056cb91fa66b4f.
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…
x
Reference in New Issue
Block a user