diff options
author | Gavin Wahl <gwahl@fusionbox.com> | 2014-02-13 17:34:43 -0700 |
---|---|---|
committer | Gavin Wahl <gwahl@fusionbox.com> | 2014-02-13 17:34:43 -0700 |
commit | d7f1b849a04437a04443d68957717179b6b4d7d3 (patch) | |
tree | a3b2d938667dfae16b395a98c895c98602462f78 | |
parent | 4939d64b77332465fdcd33a1fb141adafbf8b11c (diff) | |
download | django-pyscss-d7f1b849a04437a04443d68957717179b6b4d7d3.tar.gz |
Accept **kwargs in DjangoScssFilterkwargs
Compressor added a charset argument that was breaking here.
-rw-r--r-- | django_pyscss/compressor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django_pyscss/compressor.py b/django_pyscss/compressor.py index f815cb0..78d5fd0 100644 --- a/django_pyscss/compressor.py +++ b/django_pyscss/compressor.py @@ -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. |