]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/action.py
adding wrapping divs to user blocks
[osqa.git] / forum / models / action.py
index e8d076542adbdce911816203d808ad85b9ff1137..3aa6582161ddcc7679d31ca7e4473a21cf99d3b0 100644 (file)
@@ -300,7 +300,7 @@ class ActionRepute(models.Model):
         return 0
 
     def _add_to_rep(self, value):
-        if (self.user.reputation + value < 1) and not settings.ALLOW_NEGATIVE_REPUTATION:
+        if int(self.user.reputation + value) < 1 and not settings.ALLOW_NEGATIVE_REPUTATION:
             return 0
         else:
             return models.F('reputation') + value