Merge pull request #39 from IcyNet/postive-vote-typo

Fixed the postive typo
This commit is contained in:
Tsa6 2017-09-25 15:55:53 -04:00 committed by GitHub
commit 2242ce2878

View File

@ -403,8 +403,8 @@ class DiscussionVote(TimestampedModel):
related_name='votes', related_name='votes',
help_text='The board this vote was cast on' help_text='The board this vote was cast on'
) )
postive = models.BooleanField( positive = models.BooleanField(
help_text='If true, the vote is an upvote. Otherwise, it is a downvote. Neutral votes are not recorded' help_text='If true, the vote is an upvote. Otherwise, it is a downvote. Neutral votes are not recorded'
) )
def __str__(self): def __str__(self):
return "%s %s %s"%(self.user, '\U0001f592' if self.postive else '\U0001f44e', self.board.title) return "%s %s %s"%(self.user, '\U0001f592' if self.positive else '\U0001f44e', self.board.title)