From e790c2b744902d6f9efee9eec5f70030f1225a27 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 29 Mar 2010 20:17:11 -0500 Subject: Fix todolist dealing with package maintainers Forgot to update this, whoops. Signed-off-by: Dan McGee --- todolists/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'todolists') diff --git a/todolists/views.py b/todolists/views.py index 411c0dbb..8c7c5f5a 100644 --- a/todolists/views.py +++ b/todolists/views.py @@ -132,7 +132,8 @@ def delete_todolist(request, object_id): def send_todolist_email(todo): '''Sends an e-mail to the maintainer of a package notifying them that the package has been added to a todo list''' - if not todo.pkg.maintainer: + maints = todo.pkg.maintainers + if not maints: return page_dict = { @@ -145,9 +146,8 @@ def send_todolist_email(todo): send_mail('arch: Package [%s] added to Todolist' % todo.pkg.pkgname, t.render(c), 'Arch Website Notification ', - [todo.pkg.maintainer.email], + [m.email for m in maints], fail_silently=True) - # vim: set ts=4 sw=4 et: -- cgit v1.2.3-54-g00ecf