mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Fixed lint problems
This commit is contained in:
parent
069ea31cfb
commit
e8c226c2db
|
@ -783,7 +783,7 @@ class DecimalField(Field):
|
||||||
|
|
||||||
sign, digittuple, exponent = value.as_tuple()
|
sign, digittuple, exponent = value.as_tuple()
|
||||||
decimals = exponent * decimal.Decimal(-1) if exponent < 0 else 0
|
decimals = exponent * decimal.Decimal(-1) if exponent < 0 else 0
|
||||||
|
|
||||||
# digittuple doesn't include any leading zeros.
|
# digittuple doesn't include any leading zeros.
|
||||||
digits = len(digittuple)
|
digits = len(digittuple)
|
||||||
if decimals > digits:
|
if decimals > digits:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user