for (recipient, notifications) in groups:
notifications = list(notifications)
+ projects = set([ n.patch.project.linkname for n in notifications ])
def delete_notifications():
PatchChangeNotification.objects.filter(
'site': Site.objects.get_current(),
'person': recipient,
'notifications': notifications,
+ 'projects': projects,
}
+
subject = render_to_string(
'patchwork/patch-change-notification-subject.text',
context).strip()