This commit is contained in:
IGNY8 VPS (Salman)
2025-12-01 04:07:47 +00:00
parent 55a00bf1ad
commit aeaac01990
3 changed files with 10 additions and 22 deletions

View File

@@ -148,8 +148,8 @@ class SiteAdmin(AccountAdminMixin, admin.ModelAdmin):
def get_api_key_status(self, obj):
"""Show API key status in list view"""
from django.utils.html import format_html
if obj.wp_api_key:
from django.utils.html import format_html
return format_html('<span style="color:green;">●</span> Active')
return format_html('<span style="color:gray;">○</span> None')
get_api_key_status.short_description = 'API Key'