mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
Bug fixes for test cases / Removed duplicate
This commit is contained in:
parent
1c3b43134a
commit
fa8887d7b8
4 changed files with 19 additions and 98 deletions
|
@ -29,7 +29,8 @@ class PublicContact(TimeStampedModel):
|
|||
|
||||
def save(self, *args, **kwargs):
|
||||
"""Save to the registry and also locally in the registrar database."""
|
||||
if hasattr(self, "domain"):
|
||||
skip_epp_save = kwargs.pop('skip_epp_save', False)
|
||||
if hasattr(self, "domain") and not skip_epp_save:
|
||||
match self.contact_type:
|
||||
case PublicContact.ContactTypeChoices.REGISTRANT:
|
||||
self.domain.registrant_contact = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue