]> git.openstreetmap.org Git - osqa.git/commitdiff
Fix in award action describe.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 10 May 2010 18:55:39 +0000 (18:55 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 10 May 2010 18:55:39 +0000 (18:55 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@200 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/actions/user.py

index 68de94bf75e4c5eea4d9f6a938dd4a5d0e628481..0e894ba0260136e0be08177e88ca2836b9d3bdb8 100644 (file)
@@ -52,5 +52,5 @@ class AwardAction(ActionProxy):
         return _("%(user)s %(were_was)s awarded the %(badge_name)s badge") % {
             'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)),
             'were_was': self.viewer_or_user_verb(viewer, self.user, _('were'), _('was')),
-            'badge_name': self.award.all()[0].badge.name,
+            'badge_name': self.award.badge.name,
         }
\ No newline at end of file