Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

allow admins to filter users by group, closes #16835 #337

Closed
wants to merge 2 commits into from

2 participants

Dan Loewenherz Florian Apolloner
Dan Loewenherz

No description provided.

Florian Apolloner
Owner

Please add a short note to the release docs.

Dan Loewenherz

How does this look?

Florian Apolloner
Owner

Fixed in 69ff1b7

Florian Apolloner apollo13 closed this October 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
2  django/contrib/auth/admin.py
@@ -54,7 +54,7 @@ class UserAdmin(admin.ModelAdmin):
54 54
     add_form = UserCreationForm
55 55
     change_password_form = AdminPasswordChangeForm
56 56
     list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff')
57  
-    list_filter = ('is_staff', 'is_superuser', 'is_active')
  57
+    list_filter = ('is_staff', 'is_superuser', 'is_active', 'groups')
58 58
     search_fields = ('username', 'first_name', 'last_name', 'email')
59 59
     ordering = ('username',)
60 60
     filter_horizontal = ('user_permissions',)
2  docs/releases/1.5.txt
@@ -116,6 +116,8 @@ Django 1.5 also includes several smaller improvements worth noting:
116 116
 * The :ref:`receiver <connecting-receiver-functions>` decorator is now able to
117 117
   connect to more than one signal by supplying a list of signals.
118 118
 
  119
+* In the admin, you can now filter users by groups which they are members of.
  120
+
119 121
 * :meth:`QuerySet.bulk_create()
120 122
   <django.db.models.query.QuerySet.bulk_create>` now has a batch_size
121 123
   argument. By default the batch_size is unlimited except for SQLite where
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.