summaryrefslogtreecommitdiff
path: root/pgcommitfest/commitfest/views.py
diff options
context:
space:
mode:
authorMagnus Hagander2014-04-23 15:38:03 +0000
committerMagnus Hagander2014-04-23 15:38:03 +0000
commitfc9cb67d40a349c0b0fd6a4d4fa29a81c6363564 (patch)
tree20fda62d690f7903e1da0086270113924cf7aaae /pgcommitfest/commitfest/views.py
parentdd66431a698fb3cf829fd9bb8665ec04f58a4126 (diff)
Don't hardcode the email address of hackers
Diffstat (limited to 'pgcommitfest/commitfest/views.py')
-rw-r--r--pgcommitfest/commitfest/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pgcommitfest/commitfest/views.py b/pgcommitfest/commitfest/views.py
index ff8ff0d..6a72b93 100644
--- a/pgcommitfest/commitfest/views.py
+++ b/pgcommitfest/commitfest/views.py
@@ -257,7 +257,8 @@ def comment(request, cfid, patchid, what):
msg['Subject'] = form.thread.subject
else:
msg['Subject'] = 'Re: %s' % form.thread.subject
- msg['To'] = 'magnus@hagander.net'
+
+ msg['To'] = settings.HACKERS_EMAIL
msg['From'] = "%s %s <%s>" % (request.user.first_name, request.user.last_name, request.user.email)
msg['Date'] = formatdate(localtime=True)
msg['User-Agent'] = 'pgcommitfest'
@@ -268,7 +269,7 @@ def comment(request, cfid, patchid, what):
msg['References'] = '<%s> <%s>' % (form.thread.messageid, form.respid)
msg['Message-ID'] = make_msgid('pgcf')
- send_mail(request.user.email, 'magnus@hagander.net', msg)
+ send_mail(request.user.email, settings.HACKERS_EMAIL, msg)
PatchHistory(patch=patch, by=request.user, what='Posted %s with messageid %s' % (what, msg['Message-ID'])).save()