From 8ac81cbb56473eac0613ab528e1db113bb5132c3 Mon Sep 17 00:00:00 2001 From: jordan Date: Mon, 27 Jun 2011 17:57:57 +0000 Subject: [PATCH] OSQA-713, smart unicode the username for the accept rate user tool git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1082 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/templatetags/extra_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forum/templatetags/extra_tags.py b/forum/templatetags/extra_tags.py index 1c6c6bc..eac264d 100644 --- a/forum/templatetags/extra_tags.py +++ b/forum/templatetags/extra_tags.py @@ -98,7 +98,7 @@ def get_accept_rate(user): # If the user has more than one accepted answers the rate title will be in plural. if accepted_answers_count > 1: accept_rate_number_title = _('%(user)s has %(count)d accepted answers') % { - 'user' : user.username, + 'user' : smart_unicode(user.username), 'count' : int(accepted_answers_count) } # If the user has one accepted answer we'll be using singular. -- 2.39.5