From: jordan Date: Mon, 27 Jun 2011 17:57:57 +0000 (+0000) Subject: OSQA-713, smart unicode the username for the accept rate user tool X-Git-Tag: live~231 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/8ac81cbb56473eac0613ab528e1db113bb5132c3 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 --- 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.