# HG changeset patch # User neko259 # Date 2013-06-05 18:53:00 # Node ID 567c0f1f395623b657c022bc9f5de5276514e386 # Parent e89d805ec7fbf03b881528152b4fe2ff30443c54 Fixed one constant I did not move completely to the module scope. diff --git a/boards/models.py b/boards/models.py --- a/boards/models.py +++ b/boards/models.py @@ -179,7 +179,7 @@ class Tag(models.Model): reply_count = 0 for post in posts_with_tag: reply_count += post.get_reply_count() - reply_count += self.OPENING_POST_WEIGHT + reply_count += OPENING_POST_WEIGHT return reply_count @@ -275,4 +275,4 @@ class Admin(models.Model): password = models.CharField(max_length=100) def __unicode__(self): - return self.name + '/' + '*' * len(self.password) \ No newline at end of file + return self.name + '/' + '*' * len(self.password)