Skip to content

Commit

Permalink
Merge pull request #5325 from uktrade/feature/add-export-win-admin-au…
Browse files Browse the repository at this point in the history
…tocompletes

Add autocomplete fields to Export Win admin.
  • Loading branch information
elcct committed Apr 3, 2024
2 parents d1f6c06 + f6a12fa commit 210ca4c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions datahub/export_win/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,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')
Expand Down Expand Up @@ -135,6 +139,12 @@ class WinAdmin(BaseModelAdminMixin, VersionAdmin):
list_filter = (
('created_on', DateFieldListFilter),
)
autocomplete_fields = (
'adviser',
'company',
'company_contacts',
'lead_officer',
)
readonly_fields = (
'id',
'created_on',
Expand Down

0 comments on commit 210ca4c

Please sign in to comment.