Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on Tuesday 26 May 2020 starting at approximately 10am CDT. It is expected to take around 30 minutes and will involve a short period of downtime, around 5 minutes, towards the end of the maintenance period. Please address any questions, comments, or concerns to uwm-help@cgca.uwm.edu.

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