From cc83a4af0c51627bcdd566e4c01dcabcae51212c Mon Sep 17 00:00:00 2001 From: Daniele Procida Date: Wed, 10 Oct 2012 17:49:26 +0200 Subject: [PATCH] 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. --- django/contrib/auth/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py index 7fc723f475d..0f25aced7c2 100644 --- a/django/contrib/auth/admin.py +++ b/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: