From f66cc9d8c26cf3befd3c8d8796eac9fe56fed134 Mon Sep 17 00:00:00 2001 From: Andre Iwers <42826581+afkiwers@users.noreply.github.com> Date: Wed, 13 Dec 2023 12:43:06 +1100 Subject: [PATCH] Allow plugin loading when calling 'showmigrations' (#6076) - Otherwise cannot see what migrations have been run for a plugin Co-authored-by: afkiwers --- InvenTree/InvenTree/ready.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/ready.py b/InvenTree/InvenTree/ready.py index c04a442cff..31ce85fba6 100644 --- a/InvenTree/InvenTree/ready.py +++ b/InvenTree/InvenTree/ready.py @@ -49,7 +49,6 @@ def canAppAccessDatabase(allow_test: bool = False, allow_plugins: bool = False, 'prerender', 'rebuild_models', 'rebuild_thumbnails', - 'showmigrations', 'makemessages', 'compilemessages', 'backup', @@ -70,6 +69,7 @@ def canAppAccessDatabase(allow_test: bool = False, allow_plugins: bool = False, if not allow_plugins: excluded_commands.extend([ 'makemigrations', + 'showmigrations', 'migrate', 'collectstatic', ])