Calling decode('utf-8') on the template rendering shouldn't be necessary

All tests still pass, and it fixes #305
This commit is contained in:
Mathieu Pillard
2013-03-18 17:55:52 +01:00
parent 18f4de8c85
commit 8a9a336817

View File

@@ -107,7 +107,7 @@ class CompressorMixin(object):
rendered_output = self.render_output(compressor, mode, forced=forced)
if cache_key:
cache_set(cache_key, rendered_output)
return rendered_output.decode('utf-8')
return rendered_output
except Exception:
if settings.DEBUG or forced:
raise