mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 12:05:53 +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:
@ -49,7 +49,6 @@ def canAppAccessDatabase(allow_test: bool = False, allow_plugins: bool = False,
|
|||||||
'prerender',
|
'prerender',
|
||||||
'rebuild_models',
|
'rebuild_models',
|
||||||
'rebuild_thumbnails',
|
'rebuild_thumbnails',
|
||||||
'showmigrations',
|
|
||||||
'makemessages',
|
'makemessages',
|
||||||
'compilemessages',
|
'compilemessages',
|
||||||
'backup',
|
'backup',
|
||||||
@ -70,6 +69,7 @@ def canAppAccessDatabase(allow_test: bool = False, allow_plugins: bool = False,
|
|||||||
if not allow_plugins:
|
if not allow_plugins:
|
||||||
excluded_commands.extend([
|
excluded_commands.extend([
|
||||||
'makemigrations',
|
'makemigrations',
|
||||||
|
'showmigrations',
|
||||||
'migrate',
|
'migrate',
|
||||||
'collectstatic',
|
'collectstatic',
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user