a bit more work on the team admin
This commit is contained in:
parent
ae355516ba
commit
1bb2b8d9a9
|
@ -6,8 +6,20 @@ admin.site.register(TeamArea)
|
||||||
|
|
||||||
@admin.register(Team)
|
@admin.register(Team)
|
||||||
class TeamAdmin(admin.ModelAdmin):
|
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 = [
|
list_filter = [
|
||||||
'camp',
|
'camp',
|
||||||
|
'needs_members',
|
||||||
]
|
]
|
||||||
|
|
||||||
@admin.register(TeamMember)
|
@admin.register(TeamMember)
|
||||||
|
|
Loading…
Reference in a new issue