dev: add start date and end date to projects (#4355)

This commit is contained in:
Nikhil 2024-05-03 19:37:09 +05:30 committed by GitHub
parent 77e38b6124
commit 69d41c396e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -213,6 +213,16 @@ class Migration(migrations.Migration):
}, },
), ),
migrations.RunPython(migrate_user_profile), migrations.RunPython(migrate_user_profile),
migrations.AddField(
model_name="project",
name="end_date",
field=models.DateField(blank=True, null=True),
),
migrations.AddField(
model_name="project",
name="start_date",
field=models.DateField(blank=True, null=True),
),
migrations.RemoveField( migrations.RemoveField(
model_name="user", model_name="user",
name="billing_address", name="billing_address",

View File

@ -115,6 +115,8 @@ class Project(BaseModel):
related_name="default_state", related_name="default_state",
) )
archived_at = models.DateTimeField(null=True) archived_at = models.DateTimeField(null=True)
start_date = models.DateField(null=True, blank=True)
end_date = models.DateField(null=True, blank=True)
def __str__(self): def __str__(self):
"""Return name of the project""" """Return name of the project"""