[PATCH 13/15] utils: Make use of 'compat'
Stephen Finucane
stephen.finucane at intel.com
Fri Mar 25 04:52:58 AEDT 2016
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 <stephen.finucane at intel.com>
---
patchwork/utils.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/patchwork/utils.py b/patchwork/utils.py
index 62ffc3a..2070131 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,
}
--
2.0.0
More information about the Patchwork
mailing list