mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
keep inactive plugins
This commit is contained in:
parent
4dc1ae4f5f
commit
b706ed2312
@ -861,5 +861,6 @@ if DEBUG or TESTING:
|
||||
|
||||
PLUGINS = []
|
||||
INTEGRATION_PLUGINS = {}
|
||||
INTEGRATION_PLUGINS_INACTIVE = {}
|
||||
INTEGRATION_PLUGIN_SETTING = {}
|
||||
INTEGRATION_APPS_LOADED = False # Marks if apps were reloaded yet
|
||||
|
@ -64,6 +64,9 @@ class PluginConfig(AppConfig):
|
||||
plugin.is_package = was_packaged
|
||||
# safe reference
|
||||
settings.INTEGRATION_PLUGINS[plugin.slug] = plugin
|
||||
else:
|
||||
# save for later reference
|
||||
settings.INTEGRATION_PLUGINS_INACTIVE[plug_key] = plugin_db_setting
|
||||
|
||||
# activate integrations
|
||||
plugins = settings.INTEGRATION_PLUGINS.items()
|
||||
|
Loading…
Reference in New Issue
Block a user