mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
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:
parent
5b547f777d
commit
f66cc9d8c2
@ -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',
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user