mirror of
https://github.com/makeplane/plane.git
synced 2026-07-11 21:10:13 +02:00
dev: add start date and target date to project
This commit is contained in:
@@ -261,5 +261,15 @@ class Migration(migrations.Migration):
|
||||
"ordering": ("-created_at",),
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="project",
|
||||
name="start_date",
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="project",
|
||||
name="target_date",
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
migrations.RunPython(create_page_versions),
|
||||
]
|
||||
|
||||
@@ -115,6 +115,9 @@ class Project(BaseModel):
|
||||
related_name="default_state",
|
||||
)
|
||||
archived_at = models.DateTimeField(null=True)
|
||||
# Project start and target date
|
||||
start_date = models.DateTimeField(null=True, blank=True)
|
||||
target_date = models.DateTimeField(null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
"""Return name of the project"""
|
||||
|
||||
Reference in New Issue
Block a user