]> git.openstreetmap.org Git - osqa.git/commitdiff
show link that leads to the badge page, not list of all badges
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 11 May 2012 00:49:34 +0000 (00:49 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 11 May 2012 00:49:34 +0000 (00:49 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1263 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/actions/user.py

index 94c9f1704fba8bc6e4fbf361692da4c15cd1def7..d9c6be920e9411fc592666dd08e25db1ff1dbe38 100644 (file)
@@ -164,10 +164,10 @@ class AwardAction(ActionProxy):
         self.user.save()
 
         self.user.message_set.create(message=_(
         self.user.save()
 
         self.user.message_set.create(message=_(
-                """Congratulations, you have received a badge '%(badge_name)s'. <a href="%(badges_url)s">Find out who has it, too</a>."""
+                """Congratulations, you have received a badge '%(badge_name)s'. <a href="%(badge_url)s">Find out who has it, too</a>."""
         ) % dict(
             badge_name=award.badge.name,
         ) % dict(
             badge_name=award.badge.name,
-            badges_url=reverse("badges")))
+            badge_url=award.badge.get_absolute_url()))
 
     def cancel_action(self):
         award = self.award
 
     def cancel_action(self):
         award = self.award