From 318b4c9edaa1ec87f282956cd962e37d27b99073 Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Mon, 22 Jan 2024 12:33:45 +0100 Subject: [PATCH] feat(Slack): add autocomplete to Slack usergroups in admin --- src/firefighter/slack/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/firefighter/slack/admin.py b/src/firefighter/slack/admin.py index 273f0464..c9aa9e34 100644 --- a/src/firefighter/slack/admin.py +++ b/src/firefighter/slack/admin.py @@ -286,6 +286,7 @@ class UserGroupInline(admin.StackedInline[UserGroup, Any]): extra = 0 verbose_name = "Slack User Group" verbose_name_plural = "Slack User Groups" + autocomplete_fields = ["usergroup"] class SlackUserInline(admin.StackedInline[SlackUser, Any]):