From 5402733a9ccbb0d65c3ff49291c6079f6e724272 Mon Sep 17 00:00:00 2001 From: alpcentaur Date: Mon, 27 Feb 2023 17:09:29 +0000 Subject: [PATCH] added search bar to foreign key choice field project in model travel --- input/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/input/admin.py b/input/admin.py index 82d1bfc..2c406ec 100755 --- a/input/admin.py +++ b/input/admin.py @@ -91,6 +91,7 @@ class TravelAdmin(admin.ModelAdmin): list_display_links = ('realname', 'project') date_hierarchy = 'project_end' readonly_fields = ('project_end_quartal', 'project_end') + autocomplete_fields = ['project'] @admin.register(Email) class EmailAdmin(admin.ModelAdmin):