I am trying to build eCommerce application in Django. In each product I have three label tags which are is_new, is_hot, is_promo.
is_new will be True when a product will create, I have done it. But the system needs to automatically make is_new to False when a product is older than 7 days. I have added created_date field in Product model. How could I auto update is_new to False? Any hints?
is_hot will be True when a product will most sold. Actually the first two product will be hot. And when other product goes hot then previous hot products will be automatically False. How to do it? Hints?
is_promo will be True when I will add discount to a product. And it will be False when I will remove the discount. Any hints?