Commit e8c226c2 by Michał Hernas

Fixed lint problems

parent 069ea31c
......@@ -783,7 +783,7 @@ class DecimalField(Field):
sign, digittuple, exponent = value.as_tuple()
decimals = exponent * decimal.Decimal(-1) if exponent < 0 else 0
# digittuple doesn't include any leading zeros.
digits = len(digittuple)
if decimals > digits:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment