Merge pull request #817 from makeplane/chore/issue_estimate_points

chore: set default value as null for estimate point
This commit is contained in:
Vamsi Kurama 2023-04-14 16:54:43 +05:30 committed by GitHub
commit a358260a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class Issue(ProjectBaseModel):
related_name="state_issue",
)
estimate_point = models.IntegerField(
default=0, validators=[MinValueValidator(0), MaxValueValidator(7)]
validators=[MinValueValidator(0), MaxValueValidator(7)], null=True, blank=True
)
name = models.CharField(max_length=255, verbose_name="Issue Name")
description = models.JSONField(blank=True, default=dict)