We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 003ea5d commit b0b05e4Copy full SHA for b0b05e4
src/backend/InvenTree/InvenTree/settings.py
@@ -170,10 +170,11 @@
170
171
# Default backup configuration
172
DBBACKUP_STORAGE_OPTIONS = get_setting(
173
- 'INVENTREE_BACKUP_OPTIONS', 'backup_options', None
+ 'INVENTREE_BACKUP_OPTIONS',
174
+ 'backup_options',
175
+ default_value={'location': config.get_backup_dir()},
176
+ typecast=dict,
177
)
-if DBBACKUP_STORAGE_OPTIONS is None:
- DBBACKUP_STORAGE_OPTIONS = {'location': config.get_backup_dir()}
178
179
INVENTREE_ADMIN_ENABLED = get_boolean_setting(
180
'INVENTREE_ADMIN_ENABLED', config_key='admin_enabled', default_value=True
0 commit comments