Drop left over code

This commit is contained in:
Tom Christie 2012-12-11 22:09:04 +00:00
parent 0824761f47
commit 85bf4164dd

View File

@ -484,11 +484,6 @@ class ModelSerializer(Serializer):
except KeyError:
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):
"""
Restore the model instance.