From 2aeb34c9eb4f8dae0f4c6831e2572e04f10e7749 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:58:22 -0700 Subject: [PATCH] Fix bug with autocomplete on domains --- src/registrar/admin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/registrar/admin.py b/src/registrar/admin.py index 9da8fc855..36d6b4fd9 100644 --- a/src/registrar/admin.py +++ b/src/registrar/admin.py @@ -1088,6 +1088,14 @@ class DomainInformationInline(admin.StackedInline): # to activate the edit/delete/view buttons filter_horizontal = ("other_contacts",) + autocomplete_fields = [ + "creator", + "domain_application", + "authorizing_official", + "domain", + "submitter", + ] + def formfield_for_manytomany(self, db_field, request, **kwargs): """customize the behavior of formfields with manytomany relationships. the customized behavior includes sorting of objects in lists as well as customizing helper text"""