Skip to content

Commit 8a525ef

Browse files
dennisvgasman
authored andcommitted
Use kwargs for call to FilterBase super
Compressor has added a new attr parameter so now the filename was being passed as filter_type.
1 parent 6c2db94 commit 8a525ef

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
0.6 (xx.xx.xxxx)
5+
~~~~~~~~~~~~~~~~
6+
* Fixed call to FilterBase super for django-compressor 1.6 compatibility (Dennis Vermeulen)
7+
48
0.5 (18.11.2015)
59
~~~~~~~~~~~~~~~~
610
* Added sourcemap support (Saulius Žemaitaitis)

django_libsass.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ def compile(**kwargs):
126126
class SassCompiler(FilterBase):
127127
def __init__(self, content, attrs=None, filter_type=None, charset=None, filename=None):
128128
# FilterBase doesn't handle being passed attrs, so fiddle the signature
129-
super(SassCompiler, self).__init__(content, filter_type, filename)
129+
super(SassCompiler, self).__init__(content=content,
130+
filter_type=filter_type,
131+
filename=filename)
130132

131133
def input(self, **kwargs):
132134
if self.filename:

0 commit comments

Comments
 (0)