mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 03:50:11 +03:00
Fixed typo.
This commit is contained in:
parent
3038e2b07f
commit
bd3d0370a5
|
@ -862,7 +862,7 @@ class DecimalField(WritableField):
|
||||||
def __init__(self, max_value=None, min_value=None, max_digits=None, decimal_places=None, *args, **kwargs):
|
def __init__(self, max_value=None, min_value=None, max_digits=None, decimal_places=None, *args, **kwargs):
|
||||||
self.max_value, self.min_value = max_value, min_value
|
self.max_value, self.min_value = max_value, min_value
|
||||||
self.max_digits, self.decimal_places = max_digits, decimal_places
|
self.max_digits, self.decimal_places = max_digits, decimal_places
|
||||||
self.empty = Decimal('0').qauntize(Decimal('.%s1' % ('0' * self.decimal_places)))
|
self.empty = Decimal('0').quantize(Decimal('.%s1' % ('0' * self.decimal_places)))
|
||||||
super(DecimalField, self).__init__(*args, **kwargs)
|
super(DecimalField, self).__init__(*args, **kwargs)
|
||||||
|
|
||||||
if max_value is not None:
|
if max_value is not None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user