mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: user onboarding workflow (#2791)
This commit is contained in:
parent
eb53876af3
commit
3d8da99eec
@ -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),
|
||||||
|
),
|
||||||
|
]
|
@ -86,6 +86,7 @@ class User(AbstractBaseUser, PermissionsMixin):
|
|||||||
display_name = models.CharField(max_length=255, default="")
|
display_name = models.CharField(max_length=255, default="")
|
||||||
is_tour_completed = models.BooleanField(default=False)
|
is_tour_completed = models.BooleanField(default=False)
|
||||||
onboarding_step = models.JSONField(default=get_default_onboarding)
|
onboarding_step = models.JSONField(default=get_default_onboarding)
|
||||||
|
use_case = models.TextField(blank=True, null=True)
|
||||||
|
|
||||||
USERNAME_FIELD = "email"
|
USERNAME_FIELD = "email"
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ class Workspace(BaseModel):
|
|||||||
related_name="owner_workspace",
|
related_name="owner_workspace",
|
||||||
)
|
)
|
||||||
slug = models.SlugField(max_length=48, db_index=True, unique=True)
|
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):
|
def __str__(self):
|
||||||
"""Return name of the Workspace"""
|
"""Return name of the Workspace"""
|
||||||
|
Loading…
Reference in New Issue
Block a user