Unverified Commit 8d30d5c9 authored by Julien Palard's avatar Julien Palard
Browse files

admin: Allow to filter user by own teams.

parent 8313cef5
......@@ -257,6 +257,8 @@ class SnippetAdmin(admin.ModelAdmin):
class MyUserAdmin(UserAdmin):
list_display = UserAdmin.list_display + ("date_joined", "points", "rank")
list_filter = UserAdmin.list_filter + (TeamFilter,)
ordering = ("-date_joined",)
inlines = (MembershipInline,)
search_fields = UserAdmin.search_fields + ("teams__name",)
Supports Markdown
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