2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

add filter to admin

This commit is contained in:
Matthias
2021-11-16 00:18:06 +01:00
parent f460780e39
commit aec6a58cad

View File

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