Fix "default" and partial serializers, fixes #532

This commit is contained in:
Yuri Prezument 2012-12-30 10:58:54 +02:00
parent 36e1987f59
commit 6b962cfcf7

View File

@ -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: