diff options
author | Magnus Hagander | 2019-05-03 18:14:38 +0000 |
---|---|---|
committer | Magnus Hagander | 2019-05-03 20:26:02 +0000 |
commit | fc1ded0d80b702c2703b5756ff83e5202583ee00 (patch) | |
tree | d14859b724ab6cd072e949d7b292ab4bf1c03661 /postgresqleu/confreg/invoicehandler.py | |
parent | a4efa290c23b247a21835700ce100e5fb5bbd9d2 (diff) |
Move conference mail templates to jinja
Moving these templates, which are mostly simple textfile, into jinja
makes it possible to override the contents of these emails on a
per-conference basis, just like any other templates.
Diffstat (limited to 'postgresqleu/confreg/invoicehandler.py')
-rw-r--r-- | postgresqleu/confreg/invoicehandler.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/postgresqleu/confreg/invoicehandler.py b/postgresqleu/confreg/invoicehandler.py index 80724724..d838a9ce 100644 --- a/postgresqleu/confreg/invoicehandler.py +++ b/postgresqleu/confreg/invoicehandler.py @@ -1,9 +1,9 @@ from django.conf import settings -from postgresqleu.mailqueue.util import send_template_mail, send_simple_mail from .models import ConferenceRegistration, BulkPayment, PendingAdditionalOrder from .models import RegistrationWaitlistHistory, PrepaidVoucher from .util import notify_reg_confirmed, expire_additional_options +from .util import send_conference_mail from datetime import datetime @@ -148,17 +148,16 @@ class BulkInvoiceProcessor(object): if r.attendee: # Only notify if this attendee actually knows about the # registration. - send_template_mail(bp.conference.contactaddr, - r.email, - "Your registration for {0} multi-registration canceled".format(bp.conference.conferencename), - 'confreg/mail/bulkpay_canceled.txt', - { - 'conference': bp.conference, - 'reg': r, - 'bulk': bp, - }, - sendername=bp.conference.conferencename, - receivername=r.fullname, + send_conference_mail(bp.conference, + r.email, + "Your registration for {0} multi-registration canceled".format(bp.conference.conferencename), + 'confreg/mail/bulkpay_canceled.txt', + { + 'conference': bp.conference, + 'reg': r, + 'bulk': bp, + }, + receivername=r.fullname, ) # If this registration holds any additional options that are about to expire, release |