Write a new Domain interface

This commit is contained in:
Seamus Johnston 2023-05-26 14:51:11 -05:00
parent dd58f46231
commit d51a8600d4
No known key found for this signature in database
GPG key ID: 2F21225985069105
6 changed files with 255 additions and 221 deletions

View file

@ -32,7 +32,7 @@ class PublicContact(TimeStampedModel):
if hasattr(self, "domain"):
match self.contact_type:
case PublicContact.ContactTypeChoices.REGISTRANT:
self.domain.registrant = self
self.domain.registrant_contact = self
case PublicContact.ContactTypeChoices.ADMINISTRATIVE:
self.domain.administrative_contact = self
case PublicContact.ContactTypeChoices.TECHNICAL: