From e814b7fa411d602c875490cc3cce52b0b0fd55fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benni=20B=C3=A4rmann?= Date: Thu, 8 Dec 2022 21:36:48 +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):