Source code for shuup.campaigns.models.basket_conditions

# This file is part of Shuup.
#
# Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from django.db import models
from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from polymorphic.models import PolymorphicModel


[docs]class BasketCondition(PolymorphicModel): model = None active = models.BooleanField(default=True) name = _("Basket condition")
[docs] def matches(self, basket, lines): return False
def __str__(self): return force_text(self.name)