adding comments

This commit is contained in:
David Kennedy 2024-01-17 17:15:06 -05:00
parent 70dfccbb2e
commit 28fa9d2de1
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
2 changed files with 2 additions and 1 deletions

View file

@ -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."""

View file

@ -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):