add super call for form valid on security email form

This commit is contained in:
Matthew Spence 2024-09-19 16:57:56 -05:00
parent 68b8c7de41
commit 58d42156ba
No known key found for this signature in database

View file

@ -143,6 +143,7 @@ class DomainFormBaseView(DomainBaseView, FormMixin):
# updates session cache with domain
self._update_session_with_domain()
logger.info("Valid form has changed? %s", form.has_changed())
if self.should_notify(form):
logger.info("Sending email to domain managers")
context={
@ -850,6 +851,9 @@ class DomainSecurityEmailView(DomainFormBaseView):
messages.success(self.request, "The security email for this domain has been updated.")
# superclass has the redirect
return super().form_valid(form)
# superclass has the redirect
return redirect(self.get_success_url())