mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 19:47:20 -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'
|
user_preferences = 'preferences.preferences'
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
plugin_name = self.name.rsplit('.', 1)[1]
|
plugin_name = self.name.rsplit('.', 1)[-1]
|
||||||
|
|
||||||
# Register template content (if defined)
|
# Register template content (if defined)
|
||||||
template_extensions = import_object(f"{self.__module__}.{self.template_extensions}")
|
template_extensions = import_object(f"{self.__module__}.{self.template_extensions}")
|
||||||
|
Loading…
Reference in New Issue
Block a user