mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Fix plugin name resolution
This commit is contained in:
parent
272d6e7437
commit
e2286a4c48
@ -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