mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
add setting for reload
This commit is contained in:
parent
51860a4e7b
commit
8f10ef817c
@ -1002,6 +1002,13 @@ class InvenTreeSetting(BaseInvenTreeSetting):
|
|||||||
'validator': bool,
|
'validator': bool,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'PLUGIN_ON_STARTUP': {
|
||||||
|
'name': _('Check plugins on startup'),
|
||||||
|
'description': _('Check that all plugins are installed on startup - enable in container enviroments'),
|
||||||
|
'default': False,
|
||||||
|
'validator': bool,
|
||||||
|
'requires_restart': True,
|
||||||
|
},
|
||||||
# Settings for plugin mixin features
|
# Settings for plugin mixin features
|
||||||
'ENABLE_PLUGINS_URL': {
|
'ENABLE_PLUGINS_URL': {
|
||||||
'name': _('Enable URL integration'),
|
'name': _('Enable URL integration'),
|
||||||
|
@ -30,7 +30,9 @@ class PluginAppConfig(AppConfig):
|
|||||||
|
|
||||||
if not registry.is_loading:
|
if not registry.is_loading:
|
||||||
# this is the first startup
|
# this is the first startup
|
||||||
|
from common.models import InvenTreeSetting
|
||||||
|
|
||||||
|
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP'):
|
||||||
# make sure all plugins are installed
|
# make sure all plugins are installed
|
||||||
registry.install_plugin_file()
|
registry.install_plugin_file()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user