Code

Ticket #10106: 10106_r9781.diff

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

patch to add is_active filter to UserAdmin

Line 
1Index: django/contrib/auth/admin.py
2===================================================================
3--- django/contrib/auth/admin.py        (revision 9781)
4+++ django/contrib/auth/admin.py        (working copy)
5@@ -27,7 +27,7 @@
6     add_form = UserCreationForm
7     change_password_form = AdminPasswordChangeForm
8     list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff')
9-    list_filter = ('is_staff', 'is_superuser')
10+    list_filter = ('is_staff', 'is_superuser', 'is_active')
11     search_fields = ('username', 'first_name', 'last_name', 'email')
12     ordering = ('username',)
13     filter_horizontal = ('user_permissions',)