Skip to content

Commit 8114492

Browse files
tobiasgejeremystretch
authored andcommitted
Close #18357: Display author name for plugins
1 parent 154b3a7 commit 8114492

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

netbox/core/plugins.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ def get_local_plugins(plugins=None):
8080
plugin = importlib.import_module(plugin_name)
8181
plugin_config: PluginConfig = plugin.config
8282

83+
if plugin_config.author:
84+
author = PluginAuthor(
85+
name=plugin_config.author,
86+
)
87+
else:
88+
author = None
89+
8390
local_plugins[plugin_config.name] = Plugin(
8491
config_name=plugin_config.name,
8592
title_short=plugin_config.verbose_name,
@@ -88,6 +95,7 @@ def get_local_plugins(plugins=None):
8895
description_short=plugin_config.description,
8996
is_local=True,
9097
is_installed=True,
98+
author=author,
9199
installed_version=plugin_config.version,
92100
)
93101

0 commit comments

Comments
 (0)