Commit 6b962cfc by Yuri Prezument

Fix "default" and partial serializers, fixes #532

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