Skip to content

Commit 801e57a

Browse files
committed
Fixing compatibility bug to support Django 1.10 new style middleware
1 parent e838641 commit 801e57a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pipeline/middleware.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515

1616
class MinifyHTMLMiddleware(MiddlewareMixin):
17-
def __init__(self):
17+
def __init__(self, *args, **kwargs):
18+
super(MinifyHTMLMiddleware, self).__init__(*args, **kwargs)
1819
if not settings.PIPELINE_ENABLED:
1920
raise MiddlewareNotUsed
2021

0 commit comments

Comments
 (0)