There will be maintenance performed on git.ligo.org, chat.ligo.org, containers.lig.org, and docs.ligo.org starting at 9am PDT on Tuesday 18th August 2020. There will be an extremely small period of downtime at the start of the maintenance window as various services are restarted. Please address any comments, questions, or concerns to computing-help@igwn.org.

Commit 3419b0a0 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Small fixes to alert contact test and notification delete views

parent e904cf9a
......@@ -126,7 +126,7 @@ class DeleteNotificationView(DeleteView):
def delete(self, request, *args, **kwargs):
response = super(DeleteNotificationView, self).delete(request, *args,
**kwargs)
messages.info(request, 'Notification {n} has been deleted.'.format(
messages.info(request, 'Notification "{n}" has been deleted.'.format(
n=self.object.description))
return response
......@@ -248,8 +248,8 @@ class TestContactView(DetailView):
if self.object.email:
subject = 'Test of contact "{desc}" from {host}'.format(
desc=self.object.description, host=settings.LIGO_FQDN)
email = EmailMessage(subject, msg, settings.ALERT_EMAIL_FROM,
[self.object.email], [])
email = EmailMessage(subject, msg,
from_email=settings.ALERT_EMAIL_FROM, to=[self.object.email])
email.send()
if self.object.phone:
# Get "from" phone number.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment