diff options
| author | Daniele Procida <daniele@vurt.org> | 2012-10-10 17:49:26 +0200 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2012-10-13 14:58:36 +0100 |
| commit | cc83a4af0c51627bcdd566e4c01dcabcae51212c (patch) | |
| tree | 9e577ee57df5e11854dd903d8de208d03e3f9fd7 | |
| parent | fa2e28ccc45d383ad9b1398565a9d106a80fd1db (diff) | |
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.
| -rw-r--r-- | django/contrib/auth/admin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py index 7fc723f475..0f25aced7c 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: |
