mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-14 06:55:08 +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
|
||||
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())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue