Skip to content
Browse files

Fixed a bug with the positive comments

  • Loading branch information...
1 parent 230d6ff commit f33c7d01a07a9f81f19f62e5c47e08f808c00d81 Keenahn Jung committed Feb 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 project/pitch/models.py
View
1 project/pitch/models.py
@@ -47,6 +47,7 @@ def total_votes(self):
def negative_votes(self):
return Comment.objects.filter(pitch=self, vote=-1).count()
+ def positive_votes(self):
return Comment.objects.filter(pitch=self, vote=1).count()
def negative_comments(self):

0 comments on commit f33c7d0

Please sign in to comment.
Something went wrong with that request. Please try again.