mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-14 15:05:14 +02:00
add super call for form valid on security email form
This commit is contained in:
parent
68b8c7de41
commit
58d42156ba
1 changed files with 4 additions and 0 deletions
|
@ -143,6 +143,7 @@ class DomainFormBaseView(DomainBaseView, FormMixin):
|
||||||
# updates session cache with domain
|
# updates session cache with domain
|
||||||
self._update_session_with_domain()
|
self._update_session_with_domain()
|
||||||
|
|
||||||
|
logger.info("Valid form has changed? %s", form.has_changed())
|
||||||
if self.should_notify(form):
|
if self.should_notify(form):
|
||||||
logger.info("Sending email to domain managers")
|
logger.info("Sending email to domain managers")
|
||||||
context={
|
context={
|
||||||
|
@ -850,6 +851,9 @@ class DomainSecurityEmailView(DomainFormBaseView):
|
||||||
|
|
||||||
messages.success(self.request, "The security email for this domain has been updated.")
|
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
|
# superclass has the redirect
|
||||||
return redirect(self.get_success_url())
|
return redirect(self.get_success_url())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue