Ticket #11410: reorganized-groups-user-admin.diff

File reorganized-groups-user-admin.diff, 1.2 KB (added by Ben Spaulding, 15 years ago)
  • django/contrib/auth/admin.py

    diff --git a/django/contrib/auth/admin.py b/django/contrib/auth/admin.py
    index 98b1c39..f450e40 100644
    a b class UserAdmin(admin.ModelAdmin):  
    1919    fieldsets = (
    2020        (None, {'fields': ('username', 'password')}),
    2121        (_('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')}),
    2323        (_('Important dates'), {'fields': ('last_login', 'date_joined')}),
    24         (_('Groups'), {'fields': ('groups',)}),
    2524    )
    2625    form = UserChangeForm
    2726    add_form = UserCreationForm
    class UserAdmin(admin.ModelAdmin):  
    3029    list_filter = ('is_staff', 'is_superuser', 'is_active')
    3130    search_fields = ('username', 'first_name', 'last_name', 'email')
    3231    ordering = ('username',)
    33     filter_horizontal = ('user_permissions',)
     32    filter_horizontal = ('user_permissions', 'groups')
    3433
    3534    def __call__(self, request, url):
    3635        # this should not be here, but must be due to the way __call__ routes
Back to Top