Add changes suggested by DT

This commit is contained in:
Tom Price
2017-04-11 11:45:08 +01:00
parent 82b6f1cbf8
commit 6e78f16c33
4 changed files with 20 additions and 10 deletions

View File

@@ -52,7 +52,8 @@ def send_eventauthorisation_success_email(instance):
client_email = EmailMessage(
subject,
get_template("RIGS/eventauthorisation_client_success.txt").render(context),
to=[instance.email]
to=[instance.email],
reply_to=[settings.AUTHORISATION_NOTIFICATION_ADDRESS],
)
escapedEventName = re.sub('[^a-zA-Z0-9 \n\.]', '', instance.event.name)