1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #6422: Enable filtering users by group under admin UI

This commit is contained in:
jeremystretch
2021-05-25 11:26:18 -04:00
parent 44c62f8f44
commit bfb91fcf10
2 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class UserAdmin(UserAdmin_):
('Important dates', {'fields': ('last_login', 'date_joined')}),
)
filter_horizontal = ('groups',)
list_filter = ('is_active', 'is_staff', 'is_superuser', 'groups__name')
def get_inlines(self, request, obj):
if obj is not None: