Drop Field.validate

This commit is contained in:
Tom Christie 2014-11-27 16:41:53 +00:00
parent 6b2033f789
commit d2d7e1dfde

View File

@ -321,7 +321,6 @@ class Field(object):
value = self.to_internal_value(data)
self.run_validators(value)
self.validate(value)
return value
def run_validators(self, value):
@ -348,9 +347,6 @@ class Field(object):
if errors:
raise ValidationError(errors)
def validate(self, value):
pass
def to_internal_value(self, data):
"""
Transform the *incoming* primitive data into a native value.