mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 00:57:02 +02:00
updated comments to reflect tests; made logic more readable in needs_identity_verification
This commit is contained in:
parent
0ed0cb6c37
commit
f7fdecfd33
4 changed files with 18 additions and 6 deletions
|
@ -91,7 +91,7 @@ class User(AbstractUser):
|
|||
|
||||
# A new incoming user who is being invited to be a domain manager (that is,
|
||||
# their email address is in DomainInvitation for an invitation that is not yet "retrieved").
|
||||
if DomainInvitation.objects.filter(email=email, status=DomainInvitation.INVITED):
|
||||
if DomainInvitation.objects.filter(email=email, status=DomainInvitation.INVITED).exists():
|
||||
return False
|
||||
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue