mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Merge branch 'main' into dk/1073-admin-multi-selects
This commit is contained in:
commit
60da0fcd5a
23 changed files with 274 additions and 48 deletions
|
@ -333,6 +333,14 @@ class WebsiteAdmin(ListHeaderAdmin):
|
|||
class UserDomainRoleAdmin(ListHeaderAdmin):
|
||||
"""Custom user domain role admin class."""
|
||||
|
||||
class Meta:
|
||||
"""Contains meta information about this class"""
|
||||
|
||||
model = models.UserDomainRole
|
||||
fields = "__all__"
|
||||
|
||||
_meta = Meta()
|
||||
|
||||
# Columns
|
||||
list_display = [
|
||||
"user",
|
||||
|
@ -344,10 +352,11 @@ class UserDomainRoleAdmin(ListHeaderAdmin):
|
|||
search_fields = [
|
||||
"user__first_name",
|
||||
"user__last_name",
|
||||
"user__email",
|
||||
"domain__name",
|
||||
"role",
|
||||
]
|
||||
search_help_text = "Search by user, domain, or role."
|
||||
search_help_text = "Search by firstname, lastname, email, domain, or role."
|
||||
|
||||
autocomplete_fields = ["user", "domain"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue