mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix plugin name resolution
This commit is contained in:
@@ -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}")
|
||||
|
Reference in New Issue
Block a user