Пример #1
0
    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')
Пример #2
0
    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
Пример #3
0
    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')
Пример #4
0
    class HotTable(HotDjango.ModelSerialiser):
        manufacturer = HotDjango.IDNameSerialiser(m.Manufacturer)

        class Meta:
            fields = ('id', 'name', 'description', 'comment', 'minimum_order',
                      'manufacturer', 'costlevels')
Пример #5
0
    class HotTable(HotDjango.ModelSerialiser):
        skus = HotDjango.IDNameSerialiser(m.SKU, many=True)

        class Meta:
            fields = ('id', 'name', 'srf', 'price_ratio', 'skus')
Пример #6
0
    class HotTable(HotDjango.ModelSerialiser):
        component = HotDjango.IDNameSerialiser(m.Component)

        class Meta:
            fields = ('id', 'assembly', 'component', 'count')
Пример #7
0
    class HotTable(HotDjango.ModelSerialiser):
        order_group = HotDjango.IDNameSerialiser(m.OrderGroup)

        class Meta:
            fields = ('id', 'name', 'description', 'comment', 'order_group')