mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 06:56:33 +02:00
Merge branch 'main' into nl/3275-slowness-admin-tables
This commit is contained in:
commit
9b91c93387
4 changed files with 8 additions and 14 deletions
|
@ -1222,9 +1222,9 @@ class ContactAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
|||
class SeniorOfficialAdmin(ListHeaderAdmin):
|
||||
"""Custom Senior Official Admin class."""
|
||||
|
||||
search_fields = ["first_name", "last_name", "email"]
|
||||
search_fields = ["first_name", "last_name", "email", "federal_agency__agency"]
|
||||
search_help_text = "Search by first name, last name or email."
|
||||
list_display = ["first_name", "last_name", "email", "federal_agency"]
|
||||
list_display = ["federal_agency", "first_name", "last_name", "email"]
|
||||
|
||||
# this ordering effects the ordering of results
|
||||
# in autocomplete_fields for Senior Official
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue