shuup.campaigns.api package

Submodules

shuup.campaigns.api.serializers module

class shuup.campaigns.api.serializers.HourConditionSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

When a field is instantiated, we store the arguments that were used, so that we can present a helpful representation of the object.

class Meta[source]

Bases: object

model

alias of HourCondition

fields = ('id', 'hour_start', 'hour_end', 'days')
get_days(condition)[source]
class shuup.campaigns.api.serializers.HourBasketConditionSerializer(*args, **kwargs)[source]

Bases: ModelSerializer

When a field is instantiated, we store the arguments that were used, so that we can present a helpful representation of the object.

class Meta[source]

Bases: object

model

alias of HourCondition

fields = ('id', 'hour_start', 'hour_end', 'days')
get_days(condition)[source]

Module contents