mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 21:18:16 -06:00
Fix app config lookup for plugins referenced by dotted path
This commit is contained in:
parent
cfd8f96df3
commit
f01f0b3195
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user