Update apps.py

Update env names
This commit is contained in:
Matthias Mair 2022-03-01 12:26:16 +01:00 committed by GitHub
parent 2f4cae4c9d
commit 484a53ff8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,16 +155,16 @@ class InvenTreeConfig(AppConfig):
# get values
add_user = get_setting(
'INVENTREE_SET_USER',
settings.CONFIG.get('set_user', False)
'INVENTREE_ADMIN_USER',
settings.CONFIG.get('admin_user', False)
)
add_email = get_setting(
'INVENTREE_SET_EMAIL',
settings.CONFIG.get('set_email', False)
'INVENTREE_ADMIN_EMAIL',
settings.CONFIG.get('admin_email', False)
)
add_password = get_setting(
'INVENTREE_SET_PASSWORD',
settings.CONFIG.get('set_password', False)
'INVENTREE_ADMIN_PASSWORD',
settings.CONFIG.get('admin_password', False)
)
# check if all values are present