add temp email template and subject

This commit is contained in:
matthewswspence 2024-09-12 14:55:44 -05:00
parent 3475a76899
commit 6c605566a2
No known key found for this signature in database
GPG key ID: FB458202A7852BA4
3 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1 @@
There has been a change to {{ domain }}

View file

@ -473,10 +473,9 @@ class DomainNameserversView(DomainFormBaseView):
# if the nameservers where changed, send notification to domain managers.
if should_notify:
context={
"nameservers": nameservers,
"domain": self.object,
}
email_domain_managers(self.object.name, "template", "subject", context)
email_domain_managers(self.object.name, "emails/domain_change_notification.txt", "emails.domain_change_notification_subject.txt", context)
# superclass has the redirect
return super().form_valid(formset)