diff options
Diffstat (limited to 'forum/models/repute.py')
-rwxr-xr-x | forum/models/repute.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forum/models/repute.py b/forum/models/repute.py index cac761da..a47ce47d 100755 --- a/forum/models/repute.py +++ b/forum/models/repute.py @@ -83,7 +83,7 @@ class ReputeManager(models.Manager): today = datetime.date.today()
sums = self.filter(models.Q(reputation_type=1) | models.Q(reputation_type=-8),
user=user, reputed_at__range=(today, today + datetime.timedelta(1))). \
- agregate(models.Sum('positive'), models.SUM('negative'))
+ agregate(models.Sum('positive'), models.Sum('negative'))
return sums['positive__sum'] + sums['negative__sum']
else:
@@ -106,4 +106,4 @@ class Repute(models.Model): class Meta:
app_label = 'forum'
- db_table = u'repute'
\ No newline at end of file + db_table = u'repute'
|