mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
remove unneeded settings
This commit is contained in:
parent
cad744e40b
commit
48abd3cf79
@ -753,13 +753,10 @@ for plugin in PLUGIN_DIRS:
|
||||
[PLUGINS.append(item) for item in modules]
|
||||
|
||||
# collect integration plugins
|
||||
INTEGRATION_PLUGINS = []
|
||||
|
||||
INTEGRATION_PLUGIN_SETTING = {}
|
||||
INTEGRATION_PLUGIN_LIST = {}
|
||||
INTEGRATION_APPS_LOADED = False # Marks if apps were reloaded yet
|
||||
|
||||
for plugin in inventree_plugins.load_integration_plugins():
|
||||
plugin = plugin()
|
||||
INTEGRATION_PLUGINS.append(plugin)
|
||||
INTEGRATION_PLUGIN_LIST[plugin.slug] = plugin
|
||||
|
@ -128,8 +128,7 @@ translated_javascript_urls = [
|
||||
# Integration plugin urls
|
||||
interation_urls = []
|
||||
if InvenTreeSetting.get_setting('ENABLE_PLUGINS_URL'):
|
||||
integration_plugins = settings.INTEGRATION_PLUGINS
|
||||
for plugin in integration_plugins:
|
||||
for plugin in settings.INTEGRATION_PLUGIN_LIST.values():
|
||||
if plugin.mixin_enabled('urls'):
|
||||
interation_urls.append(plugin.urlpatterns)
|
||||
|
||||
|
@ -12,7 +12,7 @@ class PluginTemplateLoader(FilesystemLoader):
|
||||
def get_dirs(self):
|
||||
dirname = 'templates'
|
||||
template_dirs = []
|
||||
for plugin in settings.INTEGRATION_PLUGINS:
|
||||
for plugin in settings.INTEGRATION_PLUGIN_LIST.values():
|
||||
new_path = Path(plugin.path) / dirname
|
||||
if Path(new_path).is_dir():
|
||||
template_dirs.append(new_path)
|
||||
|
Loading…
Reference in New Issue
Block a user