mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +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()
|
||||
decimals = exponent * decimal.Decimal(-1) if exponent < 0 else 0
|
||||
|
||||
|
||||
# digittuple doesn't include any leading zeros.
|
||||
digits = len(digittuple)
|
||||
if decimals > digits:
|
||||
|
|
Loading…
Reference in New Issue
Block a user