From f6a12fa56301eb139f23ff4521e30fcea953f339 Mon Sep 17 00:00:00 2001 From: Pawel Szymanski Date: Wed, 3 Apr 2024 14:12:50 +0100 Subject: [PATCH] Add autocomplete fields to Export Win admin. --- datahub/export_win/admin.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/datahub/export_win/admin.py b/datahub/export_win/admin.py index c723d642c..cc82c2810 100644 --- a/datahub/export_win/admin.py +++ b/datahub/export_win/admin.py @@ -53,6 +53,10 @@ def __init__(self, *args, **kwargs): class AdvisorInline(BaseTabularInline): """Advisor model.""" + autocomplete_fields = ( + 'adviser', + ) + model = WinAdviser form = AdvisorInlineForm fields = ('id', 'adviser', 'team_type', 'hq_team', 'location') @@ -136,6 +140,12 @@ class WinAdmin(BaseModelAdminMixin, VersionAdmin): list_filter = ( ('created_on', DateFieldListFilter), ) + autocomplete_fields = ( + 'adviser', + 'company', + 'company_contacts', + 'lead_officer', + ) readonly_fields = ( 'id', 'created_on',