mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	(cherry picked from commit 0cd493e96e)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
			
			
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							003ea5de71
						
					
				
				
					commit
					b0b05e479a
				
			@@ -170,10 +170,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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user