diff options
author | Magnus Hagander | 2018-02-21 17:27:49 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-02-21 17:37:13 +0000 |
commit | 90a6e57659055df2ee8a44f05e9796b9d79673da (patch) | |
tree | b115583f564fcc18d4c81045eb11fb33cca886e2 /pgcommitfest/mailqueue/util.py | |
parent | 7bc79878578ea6c04c6e23d7074905743a0ed7f9 (diff) |
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
Diffstat (limited to 'pgcommitfest/mailqueue/util.py')
-rw-r--r-- | pgcommitfest/mailqueue/util.py | 3 |
1 files changed, 1 insertions, 2 deletions
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) |