diff --git a/src/teams/admin.py b/src/teams/admin.py index 6c304725..cf306dc1 100644 --- a/src/teams/admin.py +++ b/src/teams/admin.py @@ -6,8 +6,20 @@ admin.site.register(TeamArea) @admin.register(Team) class TeamAdmin(admin.ModelAdmin): + def get_responsible(self, obj): + return ", ".join([resp.get_full_name() for resp in obj.responsible]) + get_responsible.short_description = 'Responsible' + + list_display = [ + 'name', + 'area', + 'get_responsible', + 'needs_members', + ] + list_filter = [ 'camp', + 'needs_members', ] @admin.register(TeamMember)