mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-03 01:33:32 +02:00
simplified contact detail list template
This commit is contained in:
parent
41406a76ea
commit
1fa0e63126
3 changed files with 18 additions and 2 deletions
|
@ -92,6 +92,14 @@ class User(AbstractUser):
|
|||
"""Return count of ineligible requests"""
|
||||
return self.domain_requests_created.filter(status=DomainRequest.DomainRequestStatus.INELIGIBLE).count()
|
||||
|
||||
def has_contact_info(self):
|
||||
has_contact_info = (
|
||||
self.contact.title or
|
||||
self.email.title or
|
||||
self.contact.phone
|
||||
)
|
||||
return has_contact_info
|
||||
|
||||
@classmethod
|
||||
def needs_identity_verification(cls, email, uuid):
|
||||
"""A method used by our oidc classes to test whether a user needs email/uuid verification
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue