From 5f5695e39baef263579eb105cac1934ca8715031 Mon Sep 17 00:00:00 2001 From: rick Date: Fri, 14 May 2010 19:15:02 +0000 Subject: [PATCH] merging in oscar's patch for OSQA-247. Made a the message about receiving a new badge be on a single line. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@278 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/actions/user.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/forum/actions/user.py b/forum/actions/user.py index 74771a6..1ceae09 100644 --- a/forum/actions/user.py +++ b/forum/actions/user.py @@ -39,8 +39,7 @@ class AwardAction(ActionProxy): award.save() award.badge.awarded_count = F('awarded_count') + 1 award.badge.save() - self.user.message_set.create(message=_("""Congratulations, you have received a badge '%(badge_name)s' - Check out your profile.""") % + self.user.message_set.create(message=_("""Congratulations, you have received a badge '%(badge_name)s'. Check out your profile.""") % dict(badge_name=award.badge.name, profile_url=self.user.get_profile_url())) def cancel_action(self): -- 2.39.5