award.save()\r
award.badge.awarded_count = F('awarded_count') + 1\r
award.badge.save()\r
- self.user.message_set.create(message=_("Congratulations, you have received a badge '%(badge_name)s'. " \\r
- + u"Check out <a href=\"%(profile_url)s\">your profile</a>.") % dict(badge_name=award.badge.name,\r
- profile_url=self.user.get_profile_url()))\r
+ self.user.message_set.create(message=_("""Congratulations, you have received a badge '%(badge_name)s'\r
+ Check out <a href=\"%(profile_url)s\">your profile</a>.""") %\r
+ dict(badge_name=award.badge.name, profile_url=self.user.get_profile_url()))\r
\r
def cancel_action(self):\r
award = self.award\r