chore: user onboarding workflow (#2791)

This commit is contained in:
Nikhil 2023-11-18 16:18:06 +05:30 committed by GitHub
parent 878707f444
commit a987df38f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,23 @@
# Generated by Django 4.2.5 on 2023-11-17 08:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db', '0049_auto_20231116_0713'),
]
operations = [
migrations.AddField(
model_name='user',
name='use_case',
field=models.TextField(blank=True, null=True),
),
migrations.AlterField(
model_name='workspace',
name='organization_size',
field=models.CharField(blank=True, max_length=20, null=True),
),
]

View File

@ -86,6 +86,7 @@ class User(AbstractBaseUser, PermissionsMixin):
display_name = models.CharField(max_length=255, default="")
is_tour_completed = models.BooleanField(default=False)
onboarding_step = models.JSONField(default=get_default_onboarding)
use_case = models.TextField(blank=True, null=True)
USERNAME_FIELD = "email"

View File

@ -72,7 +72,7 @@ class Workspace(BaseModel):
related_name="owner_workspace",
)
slug = models.SlugField(max_length=48, db_index=True, unique=True)
organization_size = models.CharField(max_length=20)
organization_size = models.CharField(max_length=20, blank=True, null=True)
def __str__(self):
"""Return name of the Workspace"""