fix: added default as 1 in vote

This commit is contained in:
NarayanBavisetti 2023-08-29 13:23:12 +05:30
parent 84451f250a
commit 590c33cf41

View File

@ -476,10 +476,12 @@ class IssueVote(ProjectBaseModel):
choices=( choices=(
(-1, "DOWNVOTE"), (-1, "DOWNVOTE"),
(1, "UPVOTE"), (1, "UPVOTE"),
),
default=1,
) )
)
class Meta: class Meta:
unique_together = ["issue", "actor"] unique_together = ["issue", "actor", "vote"]
verbose_name = "Issue Vote" verbose_name = "Issue Vote"
verbose_name_plural = "Issue Votes" verbose_name_plural = "Issue Votes"
db_table = "issue_votes" db_table = "issue_votes"