mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 19:08:38 -06:00
Fix plugin name resolution
This commit is contained in:
parent
e17be35d53
commit
9cbb399e19
@ -62,7 +62,7 @@ class PluginConfig(AppConfig):
|
||||
user_preferences = 'preferences.preferences'
|
||||
|
||||
def ready(self):
|
||||
plugin_name = self.name.rsplit('.', 1)[1]
|
||||
plugin_name = self.name.rsplit('.', 1)[-1]
|
||||
|
||||
# Register template content (if defined)
|
||||
template_extensions = import_object(f"{self.__module__}.{self.template_extensions}")
|
||||
|
Loading…
Reference in New Issue
Block a user