Replace deprecated COMPRESS_CSS_FILTERS
The COMPRESS_CSS_FILTERS option was deprecated in django-compressor
v2.4[1] and causes the following warning message.
```
DeprecationWarning: COMPRESS_CSS_FILTERS setting is deprecated and will
be removed in django-compressor 3.0. Use COMPRESS_FILTERS instead.
```
[1]
@@ -135,9 +135,14 @@ COMPRESS_PRECOMPILERS = (
('text/scss', 'horizon.utils.scss_filter.HorizonScssFilter'),
)
-COMPRESS_CSS_FILTERS = (
+COMPRESS_FILTERS = {
+ 'css': (
'compressor.filters.css_default.CssAbsoluteFilter',
+ ),
+ 'js': (
+ 'compressor.filters.jsmin.rJSMinFilter',
)
+}
COMPRESS_ENABLED = True
COMPRESS_OUTPUT_DIR = 'dashboard'
