diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-14 14:13:12 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-09-14 14:13:12 +0700 |
| commit | 49937a4d59eed5afbab7b63ef9c7a859176cb946 (patch) | |
| tree | 80404dc5f8463ffa138805451e92324980c68842 | |
| parent | d50c99e3eed68df73bf2eaa10ad4013e0321aea8 (diff) | |
Add flash sale tag
| -rw-r--r-- | indoteknik_api/models/product_product.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_api/models/product_product.py b/indoteknik_api/models/product_product.py index 9454c9bd..057b449c 100644 --- a/indoteknik_api/models/product_product.py +++ b/indoteknik_api/models/product_product.py @@ -266,6 +266,7 @@ class ProductProduct(models.Model): result.update({ 'flashsale_id': item.pricelist_id.id, 'flashsale_name': item.pricelist_id.name, + 'flashsale_tag': item.pricelist_id.flashsale_tag, 'flashsale_start_date': item.pricelist_id.start_date.replace(tzinfo=pytz.utc).astimezone(jkt_tz).strftime('%Y-%m-%d %H:%M:%S'), 'flashsale_end_date': item.pricelist_id.end_date.replace(tzinfo=pytz.utc).astimezone(jkt_tz).strftime('%Y-%m-%d %H:%M:%S'), 'flashsale_base_price': base_price, |
