mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-03 01:33:32 +02:00
wip
This commit is contained in:
parent
cf946004c0
commit
8bea5fd0c4
2 changed files with 25 additions and 13 deletions
|
@ -80,10 +80,12 @@ class User(AbstractUser):
|
|||
return active_requests_count
|
||||
|
||||
def get_rejected_requests_count(self):
|
||||
"""Return count of rejected or ineligible requests"""
|
||||
allowed_states = ['rejected', 'ineligible']
|
||||
rejected_requests_count = self.domain_requests_created.filter(status__in=allowed_states).count()
|
||||
return rejected_requests_count
|
||||
"""Return count of rejected requests"""
|
||||
return self.domain_requests_created.filter(status='rejected').count()
|
||||
|
||||
def get_ineligible_requests_count(self):
|
||||
"""Return count of ineligible requests"""
|
||||
return self.domain_requests_created.filter(status='ineligible').count()
|
||||
|
||||
@classmethod
|
||||
def needs_identity_verification(cls, email, uuid):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue