Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

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