diff options
author | Joseph Turian <turian@gmail.com> | 2010-02-21 20:30:56 -0500 |
---|---|---|
committer | Joseph Turian <turian@gmail.com> | 2010-02-21 20:30:56 -0500 |
commit | 6a49e4c8487cf92f3681424bb56ba26fa6cacfba (patch) | |
tree | 5aa3ec5c8477809a638afde81ace2b438b3fcf43 /forum | |
parent | 93fac7cae37628da75a549db03102e7c90e3e0e5 (diff) | |
download | askbot-6a49e4c8487cf92f3681424bb56ba26fa6cacfba.tar.gz askbot-6a49e4c8487cf92f3681424bb56ba26fa6cacfba.tar.bz2 askbot-6a49e4c8487cf92f3681424bb56ba26fa6cacfba.zip |
When a user gets a notification message for a Badge Award, link to that users profile
Diffstat (limited to 'forum')
-rw-r--r-- | forum/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/models.py b/forum/models.py index acde1033..9bb26d88 100644 --- a/forum/models.py +++ b/forum/models.py @@ -834,7 +834,7 @@ def notify_award_message(instance, created, **kwargs): """ if created: user = instance.user - user.message_set.create(message=u"Congratulations, you have received a badge '%s'" % instance.badge.name) + user.message_set.create(message=u"Congratulations, you have received a badge '%s'. Check out your profile <a href=\"%s\">here</a>." % (instance.badge.name, get_profile_url(user))) def record_answer_accepted(instance, created, **kwargs): """ |