Merge pull request #1413 from cisagov/dk/1298-adjango-admin-searchable-dropdown

Issue #1298 - Django admin - searchable drop down for User Domain Role
This commit is contained in:
dave-kennedy-ecs 2023-11-29 16:43:52 -05:00 committed by GitHub
commit 71f28782c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -322,7 +322,7 @@ class WebsiteAdmin(ListHeaderAdmin):
class UserDomainRoleAdmin(ListHeaderAdmin):
"""Custom domain role admin class."""
"""Custom user domain role admin class."""
# Columns
list_display = [
@ -340,6 +340,8 @@ class UserDomainRoleAdmin(ListHeaderAdmin):
]
search_help_text = "Search by user, domain, or role."
autocomplete_fields = ["user", "domain"]
class DomainInvitationAdmin(ListHeaderAdmin):
"""Custom domain invitation admin class."""

View file

@ -245,3 +245,9 @@ h1, h2, h3 {
padding-left: 90px;
}
}
// Combo box
#select2-id_domain-results,
#select2-id_user-results {
width: 100%;
}