This commit is contained in:
@@ -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="关联订单")
|
||||
|
||||
Reference in New Issue
Block a user