fixup the admin for teams
This commit is contained in:
parent
ff74141d17
commit
ae355516ba
|
@ -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',
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue