[SILO-1026] feat: add estimates external API endpoints (#8664)
* add project summary endpoint * update response structure * add estimates external API endpoints with migrations * fix invalid project and workspace error
This commit is contained in:
parent
d7c80885fd
commit
9fa707b260
10 changed files with 504 additions and 11 deletions
|
|
@ -10,11 +10,15 @@ from django.db.models import Q
|
|||
# Module imports
|
||||
from .project import ProjectBaseModel
|
||||
|
||||
class EstimateType(models.TextChoices):
|
||||
CATEGORIES = "categories", "Categories"
|
||||
POINTS = "points", "Points"
|
||||
|
||||
|
||||
class Estimate(ProjectBaseModel):
|
||||
name = models.CharField(max_length=255)
|
||||
description = models.TextField(verbose_name="Estimate Description", blank=True)
|
||||
type = models.CharField(max_length=255, default="categories")
|
||||
type = models.CharField(max_length=255, choices=EstimateType.choices, default=EstimateType.CATEGORIES)
|
||||
last_used = models.BooleanField(default=False)
|
||||
|
||||
def __str__(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue