Added more info to the DiscussionVote table
This commit is contained in:
parent
7c8b06433c
commit
f1a6760af7
@ -351,11 +351,15 @@ class DiscussionReply(models.Model):
|
||||
class DiscussionVote(models.Model):
|
||||
user = models.ForeignKey(
|
||||
User,
|
||||
on_delete=models.CASCADE
|
||||
on_delete=models.CASCADE,
|
||||
related_name='discussion_votes',
|
||||
help_text='The user which cast this vote'
|
||||
)
|
||||
board = models.ForeignKey(
|
||||
DiscussionBoard,
|
||||
on_delete=models.CASCADE
|
||||
on_delete=models.CASCADE,
|
||||
related_name='votes',
|
||||
help_text='The board this vote was cast on'
|
||||
)
|
||||
postive = models.BooleanField(
|
||||
help_text='If true, the vote is an upvote. Otherwise, it is a downvote. Neutral votes are not recorded'
|
||||
|
Reference in New Issue
Block a user