class Doc(Document):
    myid = IntField(required=True, unique=True, primary_key=True)
embed_me = EmbeddedDocumentField(Post, db_field='e')
field_x = StringField(db_field='x')
mongoengine встраивает документ в DynamicField