Ticket #10106: 10106_r9781.diff

File 10106_r9781.diff, 641 bytes (added by carljm, 7 years ago)

patch to add is_active filter to UserAdmin

  • django/contrib/auth/admin.py

     
    2727    add_form = UserCreationForm
    2828    change_password_form = AdminPasswordChangeForm
    2929    list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff')
    30     list_filter = ('is_staff', 'is_superuser')
     30    list_filter = ('is_staff', 'is_superuser', 'is_active')
    3131    search_fields = ('username', 'first_name', 'last_name', 'email')
    3232    ordering = ('username',)
    3333    filter_horizontal = ('user_permissions',)
Back to Top