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()
The following patch{{notifications|length|pluralize:"es"}} (submitted by you) {{notifications|length|pluralize:"has,have"}} been updated in patchwork:
{% for notification in notifications %}
- * {{notification.patch.name|safe}}
+ * {{notification.patch.project.linkname}}: {{notification.patch.name|safe}}
- http://{{site.domain}}{{notification.patch.get_absolute_url}}
+ - for: {{notification.patch.project.name}}
was: {{notification.orig_state}}
now: {{notification.patch.state}}
{% endfor %}