]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-713, smart unicode the username for the accept rate user tool
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 27 Jun 2011 17:57:57 +0000 (17:57 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 27 Jun 2011 17:57:57 +0000 (17:57 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1082 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/templatetags/extra_tags.py

index 1c6c6bcea444af35b3d8b0fe152f88465f583383..eac264d15b307774cab03038dae4dbf0d155e8f4 100644 (file)
@@ -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.