Skip to content

Commit

Permalink
Added 'groups' to UserAdmin.filter_horizontal
Browse files Browse the repository at this point in the history
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
evildmp authored and spookylukey committed Oct 13, 2012
1 parent fa2e28c commit cc83a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/auth/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cc83a4a

Please sign in to comment.