From: Magnus Hagander Date: Fri, 19 Oct 2018 12:57:24 +0000 (+0200) Subject: Send waitlist emails to the attendees, not the conference X-Git-Url: http://git.postgresql.org/gitweb/static/session/%7B%7Bsession.id%7D%7D-%7B%7Bsession.title%7Cslugify%7D%7D?a=commitdiff_plain;h=3618a84e06e450c1e981685d5a063b0809a73a03;p=pgeu-website.git Send waitlist emails to the attendees, not the conference Definitely backwards to send all the emails back to the organizer instead of the attendees.... --- diff --git a/postgresqleu/confreg/views.py b/postgresqleu/confreg/views.py index fc17899..3387b10 100644 --- a/postgresqleu/confreg/views.py +++ b/postgresqleu/confreg/views.py @@ -2843,7 +2843,7 @@ def admin_waitlist_sendmail(request, urlname): msgbody += "\n\nThe current size of the waitlist is {0}.\n".format(tot) send_simple_mail(conference.contactaddr, - conference.contactaddr, + w.registration.email, u"[{0}] {1}".format(conference.conferencename, form.cleaned_data['subject']), msgbody, sendername=conference.conferencename,