@classmethod
def __setup__(cls):
    '\n        Setup the class and define constraints\n        '
    super(TemplateSaleChannelListing, cls).__setup__()
    table = cls.__table__()
    cls._sql_constraints += [('channel_template_unique', Unique(table, table.channel, table.template_identifier, table.template), 'Product Template is already mapped to this channel with same identifier')]
Setup the class and define constraints
@classmethod
def __setup__(cls):
    '\n        \n        '
    super(TemplateSaleChannelListing, cls).__setup__()
    table = cls.__table__()
    cls._sql_constraints += [('channel_template_unique', Unique(table, table.channel, table.template_identifier, table.template), 'Product Template is already mapped to this channel with same identifier')]