mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Drop Field.validate
This commit is contained in:
parent
6b2033f789
commit
d2d7e1dfde
|
@ -321,7 +321,6 @@ class Field(object):
|
||||||
|
|
||||||
value = self.to_internal_value(data)
|
value = self.to_internal_value(data)
|
||||||
self.run_validators(value)
|
self.run_validators(value)
|
||||||
self.validate(value)
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def run_validators(self, value):
|
def run_validators(self, value):
|
||||||
|
@ -348,9 +347,6 @@ class Field(object):
|
||||||
if errors:
|
if errors:
|
||||||
raise ValidationError(errors)
|
raise ValidationError(errors)
|
||||||
|
|
||||||
def validate(self, value):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def to_internal_value(self, data):
|
def to_internal_value(self, data):
|
||||||
"""
|
"""
|
||||||
Transform the *incoming* primitive data into a native value.
|
Transform the *incoming* primitive data into a native value.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user