admin自动审核
All checks were successful
Deploy to Server / deploy (push) Successful in 27s

This commit is contained in:
jeremygan2021
2026-02-23 17:00:35 +08:00
parent ea500391e8
commit 1a003d93cf
4 changed files with 30 additions and 4 deletions

View File

@@ -98,9 +98,14 @@ class ActivitySignupAdmin(ModelAdmin):
"pending": "warning",
"confirmed": "success",
"cancelled": "danger",
"unpaid": "secondary",
}
)
def status_label(self, obj):
# Auto sync with order status on display
if obj.check_payment_status():
# If status changed, return new status
return obj.status
return obj.status
@display(description="关联订单")