diff options
author | Dan McGee <dan@archlinux.org> | 2010-03-30 03:17:11 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-30 03:17:11 +0200 |
commit | e790c2b744902d6f9efee9eec5f70030f1225a27 (patch) | |
tree | 74c491a6bdf309033a4f45c509c27a5e26ac1164 /todolists | |
parent | 1113462edcf69b81e93a9545198c1091e3bf6703 (diff) | |
download | archweb-e790c2b744902d6f9efee9eec5f70030f1225a27.tar.gz archweb-e790c2b744902d6f9efee9eec5f70030f1225a27.tar.xz |
Fix todolist dealing with package maintainers
Forgot to update this, whoops.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r-- | todolists/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/todolists/views.py b/todolists/views.py index 411c0db..8c7c5f5 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: |