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

Ensure DBBACKUP_STORAGE_OPTIONS is a dict (#8153)

This commit is contained in:
Oliver 2024-09-21 01:29:44 +10:00 committed by GitHub
parent 8514970da5
commit 0cd493e96e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,10 +203,11 @@ DBBACKUP_STORAGE = get_setting(
# Default backup configuration # Default backup configuration
DBBACKUP_STORAGE_OPTIONS = get_setting( 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 = get_boolean_setting(
'INVENTREE_ADMIN_ENABLED', config_key='admin_enabled', default_value=True 'INVENTREE_ADMIN_ENABLED', config_key='admin_enabled', default_value=True