diff options
author | Alban Tiberghien <alban.tiberghien@gmail.com> | 2012-07-30 19:50:33 +0300 |
---|---|---|
committer | Alban Tiberghien <alban.tiberghien@gmail.com> | 2012-07-30 19:50:33 +0300 |
commit | be328f5cc3e5db72f5a4551b126130bf1feea82a (patch) | |
tree | fb7cdcd9e9bb80b72032c7eed2397075561d6f1e | |
parent | 2aac3317ab03ebe1f27796b647ce87679d202c46 (diff) | |
download | askbot-be328f5cc3e5db72f5a4551b126130bf1feea82a.tar.gz askbot-be328f5cc3e5db72f5a4551b126130bf1feea82a.tar.bz2 askbot-be328f5cc3e5db72f5a4551b126130bf1feea82a.zip |
Fix get_badge_summary
-rw-r--r-- | askbot/models/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/askbot/models/__init__.py b/askbot/models/__init__.py index 686190b7..c1beb594 100644 --- a/askbot/models/__init__.py +++ b/askbot/models/__init__.py @@ -2191,14 +2191,14 @@ def user_get_badge_summary(self): bit = ungettext( 'one silver badge', '%(count)d silver badges', - self.gold + self.silver ) % {'count': self.silver} badge_bits.append(bit) - if self.silver: + if self.bronze: bit = ungettext( 'one bronze badge', '%(count)d bronze badges', - self.gold + self.bronze ) % {'count': self.bronze} badge_bits.append(bit) |