class Design(orm.ApiModel): class Meta: type = 'designs' api = orm_api name = orm.AttributeField('name') status = orm.AttributeField('status')
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 name = orm.AttributeField('name') sub_designs = orm.RelationField('sub_designs')
class Design(orm.ApiModel): class Meta: type = 'design' api = orm_api path = 'designs' name = orm.AttributeField('name')
class Test(orm.ApiModel): class Meta: api = orm_api type = 'test' path = 'tests' name = orm.AttributeField(source='name')
class Test(orm.ApiModel): class Meta: api = orm_api type = 'test' name = orm.AttributeField(source='name') extra = hex_field