Refine logic for fixture users

This commit is contained in:
zandercymatics 2024-04-22 10:40:21 -06:00
parent 8b27c44b89
commit aa9127875a
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 18 additions and 5 deletions

View file

@ -33,6 +33,10 @@ class User(AbstractUser):
VERIFIED_BY_STAFF = "verified_by_staff", "Verified by staff"
REGULAR = "regular", "Verified by Login.gov"
INVITED = "invited", "Invited by a domain manager"
# We need a type for fixture users (rather than using verified by staff)
# because those users still do get "verified" through normal means
# after they login.
FIXTURE_USER = "fixture_user", "Created by fixtures"
# #### Constants for choice fields ####
RESTRICTED = "restricted"