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)