Commit 9c492705 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Enable horizontal filter for permissions m-to-m field

parent 95373005
......@@ -17,6 +17,7 @@ class CommitteeAdmin(TranslatedModelAdmin):
inlines = (CommitteeMembershipInline,)
list_filter = ('until',)
search_fields = ('name', 'description')
filter_horizontal = ('permissions',)
fields = ('name', 'description', 'photo', 'permissions',
'since', 'until', 'contact_email', 'wiki_namespace', 'active')
......@@ -30,6 +31,7 @@ class CommitteeAdmin(TranslatedModelAdmin):
class BoardAdmin(TranslatedModelAdmin):
inlines = (CommitteeMembershipInline,)
exclude = ('is_board',)
filter_horizontal = ('permissions',)
fields = ('name', 'photo', 'permissions',
'since', 'until',)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment