diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py
index 98b1c39..f450e40 100644
a
|
b
|
class UserAdmin(admin.ModelAdmin):
|
19 | 19 | fieldsets = ( |
20 | 20 | (None, {'fields': ('username', 'password')}), |
21 | 21 | (_('Personal info'), {'fields': ('first_name', 'last_name', 'email')}), |
22 | | (_('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser', 'user_permissions')}), |
| 22 | (_('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser', 'user_permissions', 'groups')}), |
23 | 23 | (_('Important dates'), {'fields': ('last_login', 'date_joined')}), |
24 | | (_('Groups'), {'fields': ('groups',)}), |
25 | 24 | ) |
26 | 25 | form = UserChangeForm |
27 | 26 | add_form = UserCreationForm |
… |
… |
class UserAdmin(admin.ModelAdmin):
|
30 | 29 | list_filter = ('is_staff', 'is_superuser', 'is_active') |
31 | 30 | search_fields = ('username', 'first_name', 'last_name', 'email') |
32 | 31 | ordering = ('username',) |
33 | | filter_horizontal = ('user_permissions',) |
| 32 | filter_horizontal = ('user_permissions', 'groups') |
34 | 33 | |
35 | 34 | def __call__(self, request, url): |
36 | 35 | # this should not be here, but must be due to the way __call__ routes |