From 90a6e57659055df2ee8a44f05e9796b9d79673da Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 21 Feb 2018 18:27:49 +0100 Subject: Replace render_to_response with render This is rquired as part of the move to a newer Django, and works fine on older versions too --- pgcommitfest/mailqueue/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pgcommitfest/mailqueue/util.py') diff --git a/pgcommitfest/mailqueue/util.py b/pgcommitfest/mailqueue/util.py index b0601c6..9d58750 100644 --- a/pgcommitfest/mailqueue/util.py +++ b/pgcommitfest/mailqueue/util.py @@ -1,4 +1,3 @@ -from django.template import Context from django.template.loader import get_template from email.mime.text import MIMEText @@ -42,5 +41,5 @@ def send_mail(sender, receiver, fullmsg): def send_template_mail(sender, senderaccountname, receiver, subject, templatename, templateattr={}, usergenerated=False): send_simple_mail(sender, receiver, subject, - get_template(templatename).render(Context(templateattr)), + get_template(templatename).render(templateattr), senderaccountname) -- cgit v1.2.3