Add autocompelte fields

This commit is contained in:
zandercymatics 2024-02-16 10:27:54 -07:00
parent 133c435f03
commit 6083489488
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -758,6 +758,14 @@ class DomainInformationAdmin(ListHeaderAdmin):
# to activate the edit/delete/view buttons # to activate the edit/delete/view buttons
filter_horizontal = ("other_contacts",) filter_horizontal = ("other_contacts",)
autocomplete_fields = [
"creator",
"domain_application",
"authorizing_official",
"domain",
"submitter",
]
# Table ordering # Table ordering
ordering = ["domain__name"] ordering = ["domain__name"]
@ -1129,6 +1137,13 @@ class DomainAdmin(ListHeaderAdmin):
), ),
) )
autocomplete_fields = [
"creator",
"domain_application",
"authorizing_official",
"submitter",
]
# this ordering effects the ordering of results # this ordering effects the ordering of results
# in autocomplete_fields for domain # in autocomplete_fields for domain
ordering = ["name"] ordering = ["name"]