From: Stephen Finucane Date: Thu, 24 Mar 2016 11:55:56 +0000 (+0000) Subject: utils: Make use of 'compat' X-Git-Tag: v2.0.0-rc1~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b436a551772b68d8f89ec5f88079793ac282aa7;p=thirdparty%2Fpatchwork.git utils: Make use of 'compat' Even though it's not necessary, it's more consistent to use the wrapped 'render_to_string' provided by 'compat' everywhere. In addition, remove a context parameter that's unused in the called template. Signed-off-by: Stephen Finucane Tested-by: Andy Doan --- diff --git a/patchwork/utils.py b/patchwork/utils.py index 62ffc3af..2070131c 100644 --- a/patchwork/utils.py +++ b/patchwork/utils.py @@ -27,8 +27,8 @@ from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.core.mail import EmailMessage from django.db.models import Max, Q, F -from django.template.loader import render_to_string +from patchwork.compat import render_to_string from patchwork.models import (PatchChangeNotification, EmailOptout, EmailConfirmation) @@ -65,7 +65,6 @@ def send_notifications(): context = { 'site': Site.objects.get_current(), - 'person': recipient, 'notifications': notifications, 'projects': projects, }