From 8b123b1f0d204c972d5a2554f9b27e4f7d8ae33f Mon Sep 17 00:00:00 2001 From: jordan Date: Tue, 23 Aug 2011 09:18:56 +0000 Subject: [PATCH] OSQA-748, smart unicode filtration for the username in the accept rate singular title git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1164 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 d0bdfc1..e01ff06 100644 --- a/forum/templatetags/extra_tags.py +++ b/forum/templatetags/extra_tags.py @@ -107,7 +107,7 @@ def get_accept_rate(user): } # If the user has one accepted answer we'll be using singular. elif accepted_answers_count == 1: - accept_rate_number_title = _('%s has one accepted answer') % user.username + accept_rate_number_title = _('%s has one accepted answer') % smart_unicode(user.username) # This are the only options. Otherwise there are no accepted answers at all. else: accept_rate_number_title = _('%s has no accepted answers') % smart_unicode(user.username) -- 2.45.1