Auto-verify emails for all demo tenant users
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -242,6 +242,7 @@ class Command(BaseCommand):
|
||||
"role": User.Role.TENANT_OWNER,
|
||||
"tenant": tenant,
|
||||
"phone": "555-100-0001",
|
||||
"email_verified": True,
|
||||
}
|
||||
owner, created = User.objects.get_or_create(
|
||||
username=owner_data["username"],
|
||||
@@ -264,6 +265,7 @@ class Command(BaseCommand):
|
||||
"role": User.Role.TENANT_STAFF,
|
||||
"tenant": tenant,
|
||||
"phone": "555-100-0002",
|
||||
"email_verified": True,
|
||||
}
|
||||
manager, created = User.objects.get_or_create(
|
||||
username=manager_data["username"],
|
||||
@@ -305,6 +307,7 @@ class Command(BaseCommand):
|
||||
"role": User.Role.TENANT_STAFF,
|
||||
"tenant": tenant,
|
||||
"job_title": staff["title"],
|
||||
"email_verified": True,
|
||||
}
|
||||
user, created = User.objects.get_or_create(
|
||||
username=email,
|
||||
@@ -501,6 +504,7 @@ class Command(BaseCommand):
|
||||
"role": User.Role.CUSTOMER,
|
||||
"tenant": tenant,
|
||||
"phone": "555-200-0001",
|
||||
"email_verified": True,
|
||||
},
|
||||
)
|
||||
if created:
|
||||
@@ -544,6 +548,7 @@ class Command(BaseCommand):
|
||||
"last_name": last_name,
|
||||
"role": User.Role.CUSTOMER,
|
||||
"tenant": tenant,
|
||||
"email_verified": True,
|
||||
},
|
||||
)
|
||||
if created:
|
||||
|
||||
Reference in New Issue
Block a user