class Inner(EmbeddedDocument):
    name = StringField()


class Outer(Document):
    outer_data = StringField()
embed = MapField(EmbeddedDocumentField(Inner))
MongoEngine: storing EmbeddedDocument in DictField