Fix verification type

This commit is contained in:
zandercymatics 2024-04-19 15:30:37 -06:00
parent 5cba82b343
commit 3e7f143a1e
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
5 changed files with 53 additions and 15 deletions

View file

@ -6,6 +6,7 @@ from registrar.models import (
User,
UserGroup,
)
from registrar.models.verified_by_staff import VerifiedByStaff
fake = Faker()
logger = logging.getLogger(__name__)
@ -187,6 +188,9 @@ class UserFixture:
logger.info(f"Going to load {len(users)} users in group {group_name}")
for user_data in users:
try:
# TODO - Add the fixture user to the VerifiedByStaff table
# (To track how this user was verified)
user, _ = User.objects.get_or_create(username=user_data["username"])
user.is_superuser = False
user.first_name = user_data["first_name"]