Allow plugin loading when calling 'showmigrations' (#6076)

- Otherwise cannot see what migrations have been run for a plugin

Co-authored-by: afkiwers <andre@currawong.aero>
This commit is contained in:
Andre Iwers 2023-12-13 12:43:06 +11:00 committed by GitHub
parent 5b547f777d
commit f66cc9d8c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',
])