do not write to db

This commit is contained in:
Matthias 2022-03-20 18:10:42 +01:00
parent 3606bd8fe4
commit eef51600c5
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -32,7 +32,7 @@ class PluginAppConfig(AppConfig):
# this is the first startup
try:
from common.models import InvenTreeSetting
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP'):
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP', create=False):
# make sure all plugins are installed
registry.install_plugin_file()
except: