From 5135d6b5d1e8838286ab878cf6c04cd5d1be6c7c Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 11 Jan 2024 01:09:48 +1100 Subject: [PATCH] Allow plugin load in shell (#6195) --- InvenTree/plugin/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/plugin/apps.py b/InvenTree/plugin/apps.py index 74000de2a1..37d7dafab2 100644 --- a/InvenTree/plugin/apps.py +++ b/InvenTree/plugin/apps.py @@ -27,7 +27,7 @@ class PluginAppConfig(AppConfig): if not isInMainThread(): return - if not canAppAccessDatabase(allow_test=True, allow_plugins=True): + if not canAppAccessDatabase(allow_test=True, allow_plugins=True, allow_shell=True): logger.info("Skipping plugin loading sequence") # pragma: no cover else: logger.info('Loading InvenTree plugins')