Commit 3873bc8a by Yuri Prezument

Add explaining comment

parent 6b962cfc
......@@ -191,6 +191,8 @@ class WritableField(Field):
except KeyError:
if self.default is not None and not self.root.partial:
native = self.default
# partial serializers shouldn't set the default field to avoid
# overriding the previously set value
else:
if self.required:
raise ValidationError(self.error_messages['required'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment