mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: added default as 1 in vote
This commit is contained in:
parent
84451f250a
commit
590c33cf41
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user