Commit 801e57ad by Silvan Spross

Fixing compatibility bug to support Django 1.10 new style middleware

parent e838641c
...@@ -14,7 +14,8 @@ except ImportError: # Django < 1.10 ...@@ -14,7 +14,8 @@ except ImportError: # Django < 1.10
class MinifyHTMLMiddleware(MiddlewareMixin): class MinifyHTMLMiddleware(MiddlewareMixin):
def __init__(self): def __init__(self, *args, **kwargs):
super(MinifyHTMLMiddleware, self).__init__(*args, **kwargs)
if not settings.PIPELINE_ENABLED: if not settings.PIPELINE_ENABLED:
raise MiddlewareNotUsed raise MiddlewareNotUsed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment