mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-22 18:56:15 +02:00
Cleanup
This commit is contained in:
parent
6891ea76f2
commit
238a33b95e
2 changed files with 1 additions and 7 deletions
|
@ -603,10 +603,7 @@ class Domain(TimeStampedModel, DomainHelper):
|
||||||
def get_security_email(self):
|
def get_security_email(self):
|
||||||
logger.info("get_security_email-> getting the contact ")
|
logger.info("get_security_email-> getting the contact ")
|
||||||
secContact = self.security_contact
|
secContact = self.security_contact
|
||||||
if secContact is not None:
|
return secContact.email
|
||||||
return secContact.email
|
|
||||||
else:
|
|
||||||
return None
|
|
||||||
|
|
||||||
def clientHoldStatus(self):
|
def clientHoldStatus(self):
|
||||||
return epp.Status(state=self.Status.CLIENT_HOLD, description="", lang="en")
|
return epp.Status(state=self.Status.CLIENT_HOLD, description="", lang="en")
|
||||||
|
|
|
@ -41,9 +41,6 @@ class DomainView(DomainPermissionView):
|
||||||
"""Domain detail overview page."""
|
"""Domain detail overview page."""
|
||||||
|
|
||||||
template_name = "domain_detail.html"
|
template_name = "domain_detail.html"
|
||||||
def get_context_data(self, **kwargs):
|
|
||||||
context = super().get_context_data(**kwargs)
|
|
||||||
context["security_email"] = self.get_object().get_security_email()
|
|
||||||
|
|
||||||
class DomainOrgNameAddressView(DomainPermissionView, FormMixin):
|
class DomainOrgNameAddressView(DomainPermissionView, FormMixin):
|
||||||
"""Organization name and mailing address view"""
|
"""Organization name and mailing address view"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue