]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
utils: Make use of 'compat'
authorStephen Finucane <stephen.finucane@intel.com>
Thu, 24 Mar 2016 11:55:56 +0000 (11:55 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 25 Mar 2016 11:25:21 +0000 (11:25 +0000)
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@intel.com>
Tested-by: Andy Doan <andy.doan@linaro.org>
patchwork/utils.py

index 62ffc3af95e5ac0084d8646b3e9b6ea69577b797..2070131c9897ab48733c7e21699fbf29b6d33e28 100644 (file)
@@ -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,
         }