返回创建日期

FFIB 4 天之前
父節點
當前提交
6983524b0b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      coupon/models.py

+ 1 - 0
coupon/models.py

@@ -204,6 +204,7 @@ class UserCouponInfo(BaseModelMixin):
204 204
             'admin_id': self.admin_id,
205 205
             'admin_name': self.admin_name,
206 206
             'used_at': tc.local_string(utc_dt=self.used_at, format='%Y-%m-%d') if self.used_at else '',
207
+            'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d %H:%M:%S'),
207 208
             'coupon_from': self.activity_name if self.coupon_from == 'PROMOTION' else self.coupon_from,
208 209
             'clerk_name': self.clerk_name,
209 210
             'distributor_name': self.distributor_name,