Commit 4e5dc7d3 by Timothée Peignier Committed by GitHub

Merge pull request #596 from sspross/master

Fixing compatibility bug to support Django 1.10 new style middleware
parents e838641c 801e57ad
......@@ -14,7 +14,8 @@ except ImportError: # Django < 1.10
class MinifyHTMLMiddleware(MiddlewareMixin):
def __init__(self):
def __init__(self, *args, **kwargs):
super(MinifyHTMLMiddleware, self).__init__(*args, **kwargs)
if not settings.PIPELINE_ENABLED:
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