mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
Lint issue
This commit is contained in:
parent
eaffde9d3b
commit
a84bbb5d3a
1 changed files with 1 additions and 4 deletions
|
@ -251,10 +251,7 @@ class DomainSecurityEmailView(DomainPermissionView, FormMixin):
|
||||||
domain = self.get_object()
|
domain = self.get_object()
|
||||||
initial = super().get_initial()
|
initial = super().get_initial()
|
||||||
security_contact = domain.security_contact
|
security_contact = domain.security_contact
|
||||||
if (
|
if security_contact is None or security_contact.email == "dotgov@cisa.dhs.gov":
|
||||||
security_contact is None or
|
|
||||||
security_contact.email == "dotgov@cisa.dhs.gov"
|
|
||||||
):
|
|
||||||
initial["security_email"] = None
|
initial["security_email"] = None
|
||||||
return initial
|
return initial
|
||||||
initial["security_email"] = security_contact.email
|
initial["security_email"] = security_contact.email
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue