From ae355516ba84ea156008c223ac26b1a14eeb04c9 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sat, 8 Apr 2017 09:27:33 +0200 Subject: [PATCH] fixup the admin for teams --- src/teams/admin.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/teams/admin.py b/src/teams/admin.py index ee7cc271..6c304725 100644 --- a/src/teams/admin.py +++ b/src/teams/admin.py @@ -2,7 +2,19 @@ from django.contrib import admin from .models import Team, TeamArea, TeamMember -admin.site.register(Team) admin.site.register(TeamArea) -admin.site.register(TeamMember) + +@admin.register(Team) +class TeamAdmin(admin.ModelAdmin): + list_filter = [ + 'camp', + ] + +@admin.register(TeamMember) +class TeamMemberAdmin(admin.ModelAdmin): + list_filter = [ + 'team', + 'approved', + ] +