summaryrefslogtreecommitdiff
path: root/packages/management/commands/signoff_report.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-11-03 17:33:00 -0500
committerDan McGee <dan@archlinux.org>2011-11-03 17:33:00 -0500
commit9a5410ba4b622b68306de53abfa28b5a49e30107 (patch)
tree7dc5e4cb8bd1941bb4dc2b065697d1bdb252a44f /packages/management/commands/signoff_report.py
parentcaa15d61a3882d1076378ae406bb2effcb63ff87 (diff)
Make signoff_report command send email
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/management/commands/signoff_report.py')
-rw-r--r--packages/management/commands/signoff_report.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/management/commands/signoff_report.py b/packages/management/commands/signoff_report.py
index 17e58f39..02f3d985 100644
--- a/packages/management/commands/signoff_report.py
+++ b/packages/management/commands/signoff_report.py
@@ -8,6 +8,7 @@ repository.
Usage: ./manage.py signoff_report <email> <repository>
"""
+from django.core.mail import send_mail
from django.core.urlresolvers import reverse
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
@@ -104,7 +105,6 @@ def generate_report(email, repo_name):
'leaders': leaders,
})
from_addr = 'Arch Website Notification <nobody@archlinux.org>'
- #send_mail(subject, t.render(c), from_addr, email)
- print t.render(c)
+ send_mail(subject, t.render(c), from_addr, [email])
# vim: set ts=4 sw=4 et: