Kaydet (Commit) cc83a4af authored tarafından Daniele Procida's avatar Daniele Procida Kaydeden (comit) Luke Plant

Added 'groups' to UserAdmin.filter_horizontal

Is there some reason it's not there already?

Our list of groups is very cumbersome to use with the standard widget.
üst fa2e28cc
......@@ -56,7 +56,7 @@ class UserAdmin(admin.ModelAdmin):
list_filter = ('is_staff', 'is_superuser', 'is_active', 'groups')
search_fields = ('username', 'first_name', 'last_name', 'email')
ordering = ('username',)
filter_horizontal = ('user_permissions',)
filter_horizontal = ('groups', 'user_permissions',)
def get_fieldsets(self, request, obj=None):
if not obj:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment