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>
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)
context = {
'site': Site.objects.get_current(),
- 'person': recipient,
'notifications': notifications,
'projects': projects,
}