mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 17:35:21 +00:00
Allow auto-loading of plugins in certain conditions (#3762)
Ref: https://github.com/matmair/InvenTree/commit/52af1966941ce564bae485988c40b8161d6f201e
This commit is contained in:
1 parent
67740581fe
commit
c146256170
2 files changed
+8
-4
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user