summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-29 20:17:11 -0500
committerDan McGee <dan@archlinux.org>2010-03-29 20:17:11 -0500
commite790c2b744902d6f9efee9eec5f70030f1225a27 (patch)
tree74c491a6bdf309033a4f45c509c27a5e26ac1164
parent1113462edcf69b81e93a9545198c1091e3bf6703 (diff)
downloadarchweb-e790c2b744902d6f9efee9eec5f70030f1225a27.tar.gz
archweb-e790c2b744902d6f9efee9eec5f70030f1225a27.zip
Fix todolist dealing with package maintainers
Forgot to update this, whoops. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--todolists/views.py6
1 files changed, 3 insertions, 3 deletions
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 <nobody@archlinux.org>',
- [todo.pkg.maintainer.email],
+ [m.email for m in maints],
fail_silently=True)
-
# vim: set ts=4 sw=4 et: