mirror of
https://github.com/makeplane/plane.git
synced 2026-07-11 13:00:11 +02:00
dev: add is_default value in issue type
This commit is contained in:
@@ -141,6 +141,10 @@ class Migration(migrations.Migration):
|
||||
to="db.workspace",
|
||||
),
|
||||
),
|
||||
(
|
||||
"is_default",
|
||||
models.BooleanField(default=True),
|
||||
),
|
||||
],
|
||||
options={
|
||||
"verbose_name": "Issue Type",
|
||||
@@ -160,6 +164,11 @@ class Migration(migrations.Migration):
|
||||
to="db.issuetype",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="apitoken",
|
||||
name="is_service",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.RunPython(create_issue_types),
|
||||
migrations.CreateModel(
|
||||
name="PageVersion",
|
||||
|
||||
@@ -44,6 +44,7 @@ class APIToken(BaseModel):
|
||||
null=True,
|
||||
)
|
||||
expired_at = models.DateTimeField(blank=True, null=True)
|
||||
is_service = models.BooleanField(default=False)
|
||||
|
||||
class Meta:
|
||||
verbose_name = "API Token"
|
||||
|
||||
@@ -10,6 +10,7 @@ class IssueType(WorkspaceBaseModel):
|
||||
description = models.TextField(blank=True)
|
||||
logo_props = models.JSONField(default=dict)
|
||||
sort_order = models.FloatField(default=65535)
|
||||
is_default = models.BooleanField(default=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Issue Type"
|
||||
|
||||
Reference in New Issue
Block a user