mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Fix init call
This commit is contained in:
parent
c329d2f085
commit
9d80f01bce
|
@ -738,7 +738,7 @@ class DecimalField(WritableField):
|
|||
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_digits, self.decimal_places = max_digits, decimal_places
|
||||
super(DecimalField, self).__init__(self, *args, **kwargs)
|
||||
super(DecimalField, self).__init__(*args, **kwargs)
|
||||
|
||||
if max_value is not None:
|
||||
self.validators.append(validators.MaxValueValidator(max_value))
|
||||
|
|
Loading…
Reference in New Issue
Block a user