sd
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user