This commit is contained in:
@@ -5,7 +5,7 @@ from . import emails
|
||||
registration_created = Signal(providing_args=['registration'])
|
||||
|
||||
|
||||
def send_emails_on_registration(sender, **kwargs):
|
||||
def send_emails_on_registration(sender, **kwargs): # pylint: disable=unused-argument
|
||||
registration = kwargs.get('registration')
|
||||
|
||||
# Inform the event owner (trainer)
|
||||
@@ -14,7 +14,7 @@ def send_emails_on_registration(sender, **kwargs):
|
||||
email.send()
|
||||
|
||||
# Inform the potential participant
|
||||
recipient = u'"{fullname}" <{email}>'.format(fullname=registration.get_full_name(),
|
||||
email=registration.email_address)
|
||||
recipient = '"{fullname}" <{email}>'.format(fullname=registration.get_full_name(),
|
||||
email=registration.email_address)
|
||||
email = emails.InformSelfRegistrationMail(recipient=recipient, registration=registration)
|
||||
email.send()
|
||||
|
||||
Reference in New Issue
Block a user