mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
adding comments
This commit is contained in:
parent
70dfccbb2e
commit
28fa9d2de1
2 changed files with 2 additions and 1 deletions
|
@ -234,7 +234,7 @@ class AuthorizingOfficialContactForm(ContactForm):
|
||||||
}
|
}
|
||||||
self.domainInfo = None
|
self.domainInfo = None
|
||||||
|
|
||||||
def setDomainInfo(self, domainInfo):
|
def set_domain_info(self, domainInfo):
|
||||||
"""Set the domain information for the form.
|
"""Set the domain information for the form.
|
||||||
The form instance is associated with the contact itself. In order to access the associated
|
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."""
|
domain information object, this needs to be set in the form by the view."""
|
||||||
|
|
|
@ -55,6 +55,7 @@ class Contact(TimeStampedModel):
|
||||||
)
|
)
|
||||||
|
|
||||||
def _get_all_relations(self):
|
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]
|
return [f.name for f in self._meta.get_fields() if f.is_relation]
|
||||||
|
|
||||||
def has_more_than_one_join(self, expected_relation):
|
def has_more_than_one_join(self, expected_relation):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue