diff --git a/src/registrar/forms/domain.py b/src/registrar/forms/domain.py index e29a2bb6f..1669774ae 100644 --- a/src/registrar/forms/domain.py +++ b/src/registrar/forms/domain.py @@ -234,7 +234,7 @@ class AuthorizingOfficialContactForm(ContactForm): } self.domainInfo = None - def setDomainInfo(self, domainInfo): + def set_domain_info(self, domainInfo): """Set the domain information for the form. The form instance is associated with the contact itself. In order to access the associated domain information object, this needs to be set in the form by the view.""" diff --git a/src/registrar/models/contact.py b/src/registrar/models/contact.py index 00f27ae56..ff7389780 100644 --- a/src/registrar/models/contact.py +++ b/src/registrar/models/contact.py @@ -55,6 +55,7 @@ class Contact(TimeStampedModel): ) def _get_all_relations(self): + """Returns an array of all fields which are relations""" return [f.name for f in self._meta.get_fields() if f.is_relation] def has_more_than_one_join(self, expected_relation):