diff --git a/src/backend/InvenTree/InvenTree/settings.py b/src/backend/InvenTree/InvenTree/settings.py index 8c10edfb08..ce1f604647 100644 --- a/src/backend/InvenTree/InvenTree/settings.py +++ b/src/backend/InvenTree/InvenTree/settings.py @@ -203,10 +203,11 @@ DBBACKUP_STORAGE = get_setting( # Default backup configuration DBBACKUP_STORAGE_OPTIONS = get_setting( - 'INVENTREE_BACKUP_OPTIONS', 'backup_options', None + 'INVENTREE_BACKUP_OPTIONS', + 'backup_options', + default_value={'location': config.get_backup_dir()}, + typecast=dict, ) -if DBBACKUP_STORAGE_OPTIONS is None: - DBBACKUP_STORAGE_OPTIONS = {'location': config.get_backup_dir()} INVENTREE_ADMIN_ENABLED = get_boolean_setting( 'INVENTREE_ADMIN_ENABLED', config_key='admin_enabled', default_value=True