diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-14 15:52:13 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-14 15:52:13 +0700 |
| commit | 17b3dac047891b43418b1e5d54642cd9b087e0e6 (patch) | |
| tree | 147a71c308314a5862ce841edfdde3cb04e0fc40 | |
| parent | 7197b2f647545f42d387511146e8b04df75341c5 (diff) | |
| parent | 333a046f9bdfbdb2ccebb88793e00c83641e7054 (diff) | |
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
| -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, |
