Example #1
0
 def downvote(self, voter):
     vote = Vote(self, 'DOWN', voter)
     vote.add()
Example #2
0
 def upvote(self, voter):
     vote = Vote(self, 'UP', voter)
     vote.add()