Merge remote branch 'hmarr/master'

This commit is contained in:
Florian Schlachter
2010-02-02 18:49:52 +01:00
2 changed files with 7 additions and 1 deletions

View File

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