mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
reorder list display
This commit is contained in:
parent
bc79778639
commit
f460780e39
@ -39,7 +39,7 @@ def plugin_deactivate(modeladmin, request, queryset):
|
|||||||
class PluginConfigAdmin(admin.ModelAdmin):
|
class PluginConfigAdmin(admin.ModelAdmin):
|
||||||
"""Custom admin with restricted id fields"""
|
"""Custom admin with restricted id fields"""
|
||||||
readonly_fields = ["key", "name", ]
|
readonly_fields = ["key", "name", ]
|
||||||
list_display = ['key', 'name', 'active', ]
|
list_display = ['active', '__str__', 'key', 'name', ]
|
||||||
actions = [plugin_activate, plugin_deactivate, ]
|
actions = [plugin_activate, plugin_deactivate, ]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user