mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
Change choices for Domain INvitation status to tuple constants
This commit is contained in:
parent
af1b598699
commit
00c04783b5
5 changed files with 12 additions and 12 deletions
|
@ -67,7 +67,7 @@ class User(AbstractUser):
|
|||
def check_domain_invitations_on_login(self):
|
||||
"""When a user first arrives on the site, we need to retrieve any domain
|
||||
invitations that match their email address."""
|
||||
for invitation in DomainInvitation.objects.filter(email=self.email, status=DomainInvitation.INVITED):
|
||||
for invitation in DomainInvitation.objects.filter(email=self.email, status=DomainInvitation.DomainInvitationStatus.INVITED):
|
||||
try:
|
||||
invitation.retrieve()
|
||||
invitation.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue