From 3736d42e66f1cc83132108549a33596f8d3d1cf1 Mon Sep 17 00:00:00 2001 From: tonio Date: Tue, 8 Jun 2010 15:58:10 +0200 Subject: [PATCH] Django 1.2 seems to be less permissive... --- lib/email_listing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email_listing.py b/lib/email_listing.py index ad7cefa67..92b9b3201 100644 --- a/lib/email_listing.py +++ b/lib/email_listing.py @@ -214,7 +214,7 @@ class Email(object): else: body = lxml.html.tostring(body) body = re.sub("<(/?)body", lambda m: "<%sdiv" % m.group(1), body) - body = Template(decode(body)).render({}) + body = Template(decode(body)).render(Context({})) return (False, body) def parse_search_parameters(request):