Handle "showmigrations" command (#6062)

- If provided, do not load custom app ready code
- Ref: https://github.com/inventree/InvenTree/issues/5804#issuecomment-1785562383
This commit is contained in:
Oliver 2023-12-11 07:46:27 +11:00 committed by GitHub
parent 5d42fb3f88
commit 256f44b44e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,7 @@ def canAppAccessDatabase(allow_test: bool = False, allow_plugins: bool = False,
'prerender',
'rebuild_models',
'rebuild_thumbnails',
'showmigrations',
'makemessages',
'compilemessages',
'backup',