Fixed context updating.

This commit is contained in:
Jannis Leidel
2010-06-05 12:34:25 +02:00
parent c3fab9b01b
commit a54a07da92

View File

@@ -154,7 +154,7 @@ class Compressor(object):
def output_inline(self):
context = {'content': settings.COMPRESS and self.combined or self.concat()}
if hasattr(self, 'extra_context'):
context.extend(self.extra_context)
context.update(self.extra_context)
return render_to_string(self.template_name_inline, context)
class CssCompressor(Compressor):