X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Futils.py;h=f8fee3fcaaa1c8d0db9e5d50b4989ac75ae9ef3c;hb=4e7b62c51b958acad9d87b435571a22113a43d35;hp=f48e7a59a341ada3bc9a1465c809f181dac4cd3a;hpb=3c9319711a8b4cc91016043f80129362ab438dfc;p=patchwork diff --git a/apps/patchwork/utils.py b/apps/patchwork/utils.py index f48e7a5..f8fee3f 100644 --- a/apps/patchwork/utils.py +++ b/apps/patchwork/utils.py @@ -175,6 +175,7 @@ def send_notifications(): for (recipient, notifications) in groups: notifications = list(notifications) + projects = set([ n.patch.project.linkname for n in notifications ]) def delete_notifications(): PatchChangeNotification.objects.filter( @@ -188,7 +189,9 @@ def send_notifications(): 'site': Site.objects.get_current(), 'person': recipient, 'notifications': notifications, + 'projects': projects, } + subject = render_to_string( 'patchwork/patch-change-notification-subject.text', context).strip()