2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Allow auto-loading of plugins in certain conditions (#3762)

Ref: 52af196694
This commit is contained in:
Oliver
2022-10-09 09:07:51 +11:00
committed by GitHub
parent 67740581fe
commit c146256170
2 changed files with 8 additions and 4 deletions

View File

@ -27,7 +27,7 @@ class PluginAppConfig(AppConfig):
def ready(self):
"""The ready method is extended to initialize plugins."""
if settings.PLUGINS_ENABLED:
if not canAppAccessDatabase(allow_test=True):
if not canAppAccessDatabase(allow_test=True, allow_plugins=True):
logger.info("Skipping plugin loading sequence") # pragma: no cover
else:
logger.info('Loading InvenTree plugins')