Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added 'groups' to UserAdmin.filter_horizontal

Is there some reason it's not there already?

Our list of groups is very cumbersome to use with the standard widget.
  • Loading branch information...
commit cc83a4af0c51627bcdd566e4c01dcabcae51212c 1 parent fa2e28c
@evildmp evildmp authored spookylukey committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/auth/admin.py
View
2  django/contrib/auth/admin.py
@@ -56,7 +56,7 @@ class UserAdmin(admin.ModelAdmin):
list_filter = ('is_staff', 'is_superuser', 'is_active', 'groups')
search_fields = ('username', 'first_name', 'last_name', 'email')
ordering = ('username',)
- filter_horizontal = ('user_permissions',)
+ filter_horizontal = ('groups', 'user_permissions',)
def get_fieldsets(self, request, obj=None):
if not obj:

1 comment on commit cc83a4a

@adrianholovaty
Collaborator

No reason it wasn't there already, other than perhaps most of us core devs have very small numbers of groups per user. :-)

Please sign in to comment.
Something went wrong with that request. Please try again.