I would like to setup Coupons for my store. I have class
I would like to be able to define ONE default Coupon which will be applied in case there are no coupons applied yet to the cart.
So, how can I set only one of the coupons to be the default one ?
What approach would you suggest ?
FYI: I will manage Coupons using Django Admin.
Coupon class looks like this:
class Coupon(models.Model): code = models.CharField(max_length=10,unique=True) description = models.TextField(blank=True, null=True) valid_from = models.DateTimeField(default=timezone.now()) valid_to = models.DateTimeField(default=timezone.now()+timedelta(days=7))