Skip to content

Commit

Permalink
personal: Remove columns from Contact list view
Browse files Browse the repository at this point in the history
Remove title column from Contact admin list view and rearrange the other
columns.
  • Loading branch information
donald committed Feb 9, 2025
1 parent f6c7319 commit 5796611
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mpicms/personal/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ class ContactAdmin(ModelAdmin):
model = Contact
menu_label = _('Persons')
menu_icon = 'user'
list_display = ['title', 'first_name', 'last_name', 'get_positions', 'email', 'phone', 'room', 'get_groups']
list_filter = ['groups', 'is_active', 'positions']
search_fields = ['title', 'first_name', 'last_name', 'email', 'phone', 'room']
list_display = ['last_name', 'first_name', 'email', 'phone', 'room', 'get_groups', 'get_positions' ]
list_filter = ['is_active', 'groups']
search_fields = ['first_name', 'last_name', 'email', 'phone', 'room']

edit_view_class = ContactEditView
inspect_view_class = ContactInspectView
Expand Down

0 comments on commit 5796611

Please sign in to comment.