filter team areas by camp

This commit is contained in:
Stephan Telling 2017-08-13 17:21:00 +02:00
parent ad9e93d692
commit 756c90d2fb
No known key found for this signature in database
GPG key ID: D4892289F36ADA9B

View file

@ -2,8 +2,6 @@ from django.contrib import admin
from .models import Team, TeamArea, TeamMember from .models import Team, TeamArea, TeamMember
from .email import add_added_membership_email, add_removed_membership_email from .email import add_added_membership_email, add_removed_membership_email
admin.site.register(TeamArea)
@admin.register(Team) @admin.register(Team)
class TeamAdmin(admin.ModelAdmin): class TeamAdmin(admin.ModelAdmin):
@ -69,3 +67,10 @@ class TeamMemberAdmin(admin.ModelAdmin):
) )
) )
remove_member.description = 'Remove a user from the team.' remove_member.description = 'Remove a user from the team.'
@admin.register(TeamArea)
class TeamAreaAdmin(admin.ModelAdmin):
list_filter = [
'camp'
]