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