mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 00:04:16 +03:00
Drop left over code
This commit is contained in:
parent
0824761f47
commit
85bf4164dd
|
@ -484,11 +484,6 @@ class ModelSerializer(Serializer):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return ModelField(model_field=model_field, **kwargs)
|
return ModelField(model_field=model_field, **kwargs)
|
||||||
|
|
||||||
# def validate(self, attrs):
|
|
||||||
# restored_object = self.restore_object(attrs, instance=getattr(self, 'object', None))
|
|
||||||
# restored_object.full_clean(exclude=list(self.get_excluded_fieldnames()))
|
|
||||||
# return attrs
|
|
||||||
|
|
||||||
def restore_object(self, attrs, instance=None):
|
def restore_object(self, attrs, instance=None):
|
||||||
"""
|
"""
|
||||||
Restore the model instance.
|
Restore the model instance.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user