2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00

Fix to return a boolean value (#4018)

(cherry picked from commit 92cada658a2aaa1e39afed280336644c4c0067ab)
This commit is contained in:
Oliver 2022-12-05 14:46:46 +11:00 committed by GitHub
parent 4ad88c7822
commit de0c7ec712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1372,7 +1372,7 @@ class InvenTreeSetting(BaseInvenTreeSetting):
'PLUGIN_ON_STARTUP': { 'PLUGIN_ON_STARTUP': {
'name': _('Check plugins on startup'), 'name': _('Check plugins on startup'),
'description': _('Check that all plugins are installed on startup - enable in container environments'), 'description': _('Check that all plugins are installed on startup - enable in container environments'),
'default': os.getenv('INVENTREE_DOCKER', False), 'default': str(os.getenv('INVENTREE_DOCKER', False)).lower() in ['1', 'true'],
'validator': bool, 'validator': bool,
'requires_restart': True, 'requires_restart': True,
}, },