Skip to content

Commit

Permalink
Merge pull request #243 from makeplane/fix/description_comment_migrat…
Browse files Browse the repository at this point in the history
…ion_warnings

fix: description and comment_json default value to remove warnings
  • Loading branch information
pablohashescobar authored Feb 7, 2023
2 parents 8e1ba90 + 32d83ac commit 4e27e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apiserver/plane/db/models/issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Issue(ProjectBaseModel):
related_name="state_issue",
)
name = models.CharField(max_length=255, verbose_name="Issue Name")
description = models.JSONField(blank=True, default="")
description = models.JSONField(blank=True, default=dict)
description_html = models.TextField(blank=True, default="<p></p>")
description_stripped = models.TextField(blank=True, null=True)
priority = models.CharField(
Expand Down Expand Up @@ -198,7 +198,7 @@ def __str__(self):

class IssueComment(ProjectBaseModel):
comment_stripped = models.TextField(verbose_name="Comment", blank=True)
comment_json = models.JSONField(blank=True, default="")
comment_json = models.JSONField(blank=True, default=dict)
comment_html = models.TextField(blank=True, default="<p></p>")
attachments = ArrayField(models.URLField(), size=10, blank=True, default=list)
issue = models.ForeignKey(Issue, on_delete=models.CASCADE)
Expand Down

0 comments on commit 4e27e93

Please sign in to comment.