tamron
wine
  • views.py 64B

      from django.shortcuts import render # Create your views here.
    COUPON_HAS_EXPIRED · 8cd90fbffb - Gogs: Go Git Service

    COUPON_HAS_EXPIRED

    Kimi.Huang 7 年之前
    父节点
    当前提交
    8cd90fbffb
    共有 1 个文件被更改,包括 1 次插入 和 1 次删除
    1. 1 1
        mch/models.py

    + 1 - 1
    mch/models.py

    @@ -610,5 +610,5 @@ class ActivityInfo(BaseModelMixin):
    610 610
             return {
    611 611
                 'coupon_expire_at': self.final_coupon_expire_at(created_at=created_at),
    612 612
                 'coupon_value': self.coupon_value,
    613
    -            'coupon_has_expired': tc.utc_datetime() >= self.final_expire_at,
    613
    +            'coupon_has_expired': tc.utc_datetime() >= self.final_expire_at(created_at=created_at),
    614 614
             },

    kodo - Gogs: Go Git Service