From: rick Date: Fri, 14 May 2010 19:15:02 +0000 (+0000) Subject: merging in oscar's patch for OSQA-247. Made a the message about receiving a new... X-Git-Tag: live~852 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/5f5695e39baef263579eb105cac1934ca8715031 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 --- 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):