Accept **kwargs in DjangoScssFilter

Compressor added a charset argument that was breaking here.
This commit is contained in:
Gavin Wahl 2014-02-13 17:34:43 -07:00
parent 4939d64b77
commit d7f1b849a0
1 changed files with 2 additions and 2 deletions

View File

@ -11,10 +11,10 @@ from django_pyscss.scss import DjangoScss
class DjangoScssFilter(FilterBase):
compiler = DjangoScss()
def __init__(self, content, attrs=None, filter_type=None, filename=None):
def __init__(self, content, attrs=None, filter_type=None, filename=None, **kwargs):
# It looks like there is a bug in django-compressor because it expects
# us to accept attrs.
super(DjangoScssFilter, self).__init__(content, filter_type, filename)
super(DjangoScssFilter, self).__init__(content, filter_type, filename, **kwargs)
try:
# this is a link tag which means there is an SCSS file being
# referenced.