Added more info to the DiscussionVote table

This commit is contained in:
Taizo 'Tsa6' Simpson 2017-08-26 02:29:42 -04:00
parent 7c8b06433c
commit f1a6760af7

View File

@ -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'