class HotTable(HotDjango.ModelSerialiser): sku = HotDjango.IDNameSerialiser(m.SKU) customer = HotDjango.IDNameSerialiser(m.Customer) season_var = HotDjango.IDNameSerialiser(m.SeasonalVariation) class Meta: fields = ('id', 'sku', 'customer', 'season_var', 'price', 'srf')
class HotTable(HotDjango.ModelSerialiser): period = HotDjango.IDNameSerialiser(m.SalesPeriod) promotion = HotDjango.IDNameSerialiser(m.Promotion) class Meta: fields = ('id', 'customer', 'period', 'store_count', 'promotion') readonly = ('period', ) add_delete = False
class HotTable(HotDjango.ModelSerialiser): group = HotDjango.IDNameSerialiser(m.SKUGroup) assemblies = HotDjango.IDNameSerialiser(m.Assembly, many=True) dft_season_var = HotDjango.IDNameSerialiser(m.SeasonalVariation) class Meta: fields = ('id', 'name', 'description', 'comment', 'dft_price', 'dft_srf', 'dft_season_var', 'group', 'assemblies')
class HotTable(HotDjango.ModelSerialiser): manufacturer = HotDjango.IDNameSerialiser(m.Manufacturer) class Meta: fields = ('id', 'name', 'description', 'comment', 'minimum_order', 'manufacturer', 'costlevels')
class HotTable(HotDjango.ModelSerialiser): skus = HotDjango.IDNameSerialiser(m.SKU, many=True) class Meta: fields = ('id', 'name', 'srf', 'price_ratio', 'skus')
class HotTable(HotDjango.ModelSerialiser): component = HotDjango.IDNameSerialiser(m.Component) class Meta: fields = ('id', 'assembly', 'component', 'count')
class HotTable(HotDjango.ModelSerialiser): order_group = HotDjango.IDNameSerialiser(m.OrderGroup) class Meta: fields = ('id', 'name', 'description', 'comment', 'order_group')