mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-27 11:33:46 +02:00
Update public_contact.py
This commit is contained in:
parent
eff89aae21
commit
2faeded1ea
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ class PublicContact(TimeStampedModel):
|
||||||
def get_contact_info_from_epp(self, get_result_as_dict=False):
|
def get_contact_info_from_epp(self, get_result_as_dict=False):
|
||||||
"""Grabs the resultant contact information in epp for this public contact
|
"""Grabs the resultant contact information in epp for this public contact
|
||||||
by using the InfoContact command.
|
by using the InfoContact command.
|
||||||
Returns `registry.send(req, cleaned=True).res_data[0]`."""
|
Returns a commands.InfoContactResultData object, or a dict if get_result_as_dict is True."""
|
||||||
try:
|
try:
|
||||||
req = commands.InfoContact(id=self.registry_id)
|
req = commands.InfoContact(id=self.registry_id)
|
||||||
result = registry.send(req, cleaned=True).res_data[0]
|
result = registry.send(req, cleaned=True).res_data[0]
|
||||||
|
@ -124,7 +124,7 @@ class PublicContact(TimeStampedModel):
|
||||||
logger.info("Contact Info on PublicContact model (compare against EPP):")
|
logger.info("Contact Info on PublicContact model (compare against EPP):")
|
||||||
logger.info("=====================")
|
logger.info("=====================")
|
||||||
for key in results.keys():
|
for key in results.keys():
|
||||||
if value_on_model := getattr(self, key) is not None:
|
if value_on_model := getattr(cls, key) is not None:
|
||||||
logger.info(f"{key}: {value_on_model}")
|
logger.info(f"{key}: {value_on_model}")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue