'Make sure that the document instance is an instance of the
EmbeddedDocument subclass provided when the document was defined.'

def validate(self, value, clean=True):

    if (not isinstance(value, self.document_type)):
        self.error('Invalid    embedded    document    instance    provided    to    an    EmbeddedDocumentField')
    self.document_type.validate(value, clean)
