reorder list display

This commit is contained in:
Matthias 2021-11-16 00:17:44 +01:00
parent bc79778639
commit f460780e39
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -39,7 +39,7 @@ def plugin_deactivate(modeladmin, request, queryset):
class PluginConfigAdmin(admin.ModelAdmin):
"""Custom admin with restricted id fields"""
readonly_fields = ["key", "name", ]
list_display = ['key', 'name', 'active', ]
list_display = ['active', '__str__', 'key', 'name', ]
actions = [plugin_activate, plugin_deactivate, ]