mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Install django-cleanup
- Automatically removes orphaned ImageFIeld and FileField files
This commit is contained in:
		@@ -39,11 +39,6 @@ if DEBUG:
 | 
				
			|||||||
# Application definition
 | 
					# Application definition
 | 
				
			||||||
 | 
					
 | 
				
			||||||
INSTALLED_APPS = [
 | 
					INSTALLED_APPS = [
 | 
				
			||||||
    'django_filters',
 | 
					 | 
				
			||||||
    'rest_framework',
 | 
					 | 
				
			||||||
    'simple_history',
 | 
					 | 
				
			||||||
    'crispy_forms',
 | 
					 | 
				
			||||||
    'import_export',
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Core django modules
 | 
					    # Core django modules
 | 
				
			||||||
    'django.contrib.admin',
 | 
					    'django.contrib.admin',
 | 
				
			||||||
@@ -58,6 +53,13 @@ INSTALLED_APPS = [
 | 
				
			|||||||
    'stock.apps.StockConfig',
 | 
					    'stock.apps.StockConfig',
 | 
				
			||||||
    'company.apps.CompanyConfig',
 | 
					    'company.apps.CompanyConfig',
 | 
				
			||||||
    'build.apps.BuildConfig',
 | 
					    'build.apps.BuildConfig',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    'django_filters',
 | 
				
			||||||
 | 
					    'rest_framework',
 | 
				
			||||||
 | 
					    'simple_history',
 | 
				
			||||||
 | 
					    'crispy_forms',
 | 
				
			||||||
 | 
					    'import_export',
 | 
				
			||||||
 | 
					    'django_cleanup',
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
MIDDLEWARE = [
 | 
					MIDDLEWARE = [
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,3 +7,4 @@ coreapi>=2.3.0
 | 
				
			|||||||
pygments>=2.2.0
 | 
					pygments>=2.2.0
 | 
				
			||||||
django-crispy-forms>=1.7.2
 | 
					django-crispy-forms>=1.7.2
 | 
				
			||||||
django-import-export>=1.0.0
 | 
					django-import-export>=1.0.0
 | 
				
			||||||
 | 
					django-cleanup>=2.1.0
 | 
				
			||||||
		Reference in New Issue
	
	Block a user