返回创建日期

FFIB 13 ore fa
parent
commit
6983524b0b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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,