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