Install django-cleanup

- Automatically removes orphaned ImageFIeld and FileField files
This commit is contained in:
Oliver 2018-05-03 23:47:43 +10:00
parent bc716e25f7
commit e9be3e9e06
2 changed files with 9 additions and 6 deletions

View File

@ -39,11 +39,6 @@ if DEBUG:
# Application definition
INSTALLED_APPS = [
'django_filters',
'rest_framework',
'simple_history',
'crispy_forms',
'import_export',
# Core django modules
'django.contrib.admin',
@ -58,6 +53,13 @@ INSTALLED_APPS = [
'stock.apps.StockConfig',
'company.apps.CompanyConfig',
'build.apps.BuildConfig',
'django_filters',
'rest_framework',
'simple_history',
'crispy_forms',
'import_export',
'django_cleanup',
]
MIDDLEWARE = [

View File

@ -6,4 +6,5 @@ django-simple-history>=1.8.2
coreapi>=2.3.0
pygments>=2.2.0
django-crispy-forms>=1.7.2
django-import-export>=1.0.0
django-import-export>=1.0.0
django-cleanup>=2.1.0