mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
add filter to admin
This commit is contained in:
parent
f460780e39
commit
aec6a58cad
@ -40,6 +40,7 @@ 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 = ['active', '__str__', 'key', 'name', ]
|
list_display = ['active', '__str__', 'key', 'name', ]
|
||||||
|
list_filter = ['active']
|
||||||
actions = [plugin_activate, plugin_deactivate, ]
|
actions = [plugin_activate, plugin_deactivate, ]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user