class Design(orm.ApiModel): class Meta: type = 'designs' api = orm_api name = orm.AttributeField('name') sub_designs = orm.RelationField('sub_designs')
class Test(orm.ApiModel): class Meta: api = orm_api type = 'test' other = orm.RelationField(source='other') name = orm.AttributeField(source='name')
class Design(orm.ApiModel): class Meta: type = 'designs' api = orm_api others = orm.RelationField('others')