fixup the admin for teams

This commit is contained in:
Thomas Steen Rasmussen 2017-04-08 09:27:33 +02:00
parent ff74141d17
commit ae355516ba

View file

@ -2,7 +2,19 @@ from django.contrib import admin
from .models import Team, TeamArea, TeamMember from .models import Team, TeamArea, TeamMember
admin.site.register(Team)
admin.site.register(TeamArea) 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',
]