Merge remote branch 'hmarr/master'
This commit is contained in:
@@ -130,6 +130,7 @@ class EmbeddedDocumentField(BaseField):
|
||||
if not isinstance(value, self.document):
|
||||
raise ValidationError('Invalid embedded document instance '
|
||||
'provided to an EmbeddedDocumentField')
|
||||
self.document.validate(value)
|
||||
|
||||
def lookup_member(self, member_name):
|
||||
return self.document._fields.get(member_name)
|
||||
|
||||
Reference in New Issue
Block a user