diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-10 15:30:53 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-10 15:30:53 +0700 |
| commit | e1af064ea7c6be76e96719382f4de8245b89dc5f (patch) | |
| tree | 94ba141e774120672cc7ab6657f0d7d03c105920 | |
| parent | 30ee32fcb482d325dd4a8db09983112a81fdb448 (diff) | |
Add start time on voucher api
| -rw-r--r-- | indoteknik_custom/models/voucher.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/voucher.py b/indoteknik_custom/models/voucher.py index e1497d9a..6a166cf3 100644 --- a/indoteknik_custom/models/voucher.py +++ b/indoteknik_custom/models/voucher.py @@ -52,7 +52,8 @@ class Voucher(models.Model): 'description': self.description, 'discount_amount': self.discount_amount, 'discount_type': discount_type, - 'remaining_time': self.end_time.strftime('%d-%m-%Y'), + 'start_time': self.start_time.strftime('%d-%m-%Y'), + 'end_time': self.end_time.strftime('%d-%m-%Y'), 'min_purchase_amount': self.min_purchase_amount, 'max_discount_amount': max_discount_amount, } |
