From 1ca1caac2df429cec85169e6e51e48f325b83110 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 23 Mar 2018 15:26:00 +0100 Subject: template.render() should not use a context, just a dict --- postgresqleu/mailqueue/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'postgresqleu/mailqueue/util.py') diff --git a/postgresqleu/mailqueue/util.py b/postgresqleu/mailqueue/util.py index fd3a77e8..93a19d38 100644 --- a/postgresqleu/mailqueue/util.py +++ b/postgresqleu/mailqueue/util.py @@ -7,13 +7,13 @@ from email import encoders from postgresqleu.util.context_processors import settings_context -from django.template import Context from django.template.loader import get_template from models import QueuedMail def template_to_string(templatename, attrs = {}): - context = Context(attrs) + context = {} + context.update(attrs) context.update(settings_context()) return get_template(templatename).render(context) -- cgit v1.2.3