From f01f0b31956f5899e3a44a4e73de6fc2fe747378 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 19 Jan 2024 10:49:23 -0500 Subject: [PATCH] Fix app config lookup for plugins referenced by dotted path --- netbox/core/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/netbox/core/views.py b/netbox/core/views.py index b34ea654a..17d8c9c09 100644 --- a/netbox/core/views.py +++ b/netbox/core/views.py @@ -244,7 +244,10 @@ class ConfigRevisionRestoreView(ContentTypePermissionRequiredMixin, View): class PluginListView(LoginRequiredMixin, View): def get(self, request): - plugins = [apps.get_app_config(plugin) for plugin in settings.PLUGINS] + plugins = [ + # Look up app config by package name + apps.get_app_config(plugin.rsplit('.', 1)[-1]) for plugin in settings.PLUGINS + ] table = tables.PluginTable(plugins) table.configure(request)