Пример #1
0
 class MyDoc(Document):
     gref = fields.GenericReferenceField(attribute='in_mongo_gref')
Пример #2
0
 class Doc(Document):
     id = fields.ObjectIdField(attribute='_id')
     ref = fields.ReferenceField('Doc')
     gen_ref = fields.GenericReferenceField()
Пример #3
0
 class MySchema(Schema):
     gref = fields.GenericReferenceField(attribute='in_mongo_gref')