Commit 6b962cfc by Yuri Prezument

Fix "default" and partial serializers, fixes #532

parent 36e1987f
......@@ -189,7 +189,7 @@ class WritableField(Field):
else:
native = data[field_name]
except KeyError:
if self.default is not None:
if self.default is not None and not self.root.partial:
native = self.default
else:
if self.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