]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/templatetags/extra_tags.py
OSQA-748, smart unicode filtration for the username in the accept rate singular title
[osqa.git] / forum / templatetags / extra_tags.py
index d0bdfc18450c268a03ddfe2613c8624b61ded768..e01ff068d3377863add7c536c833ff156dee2516 100644 (file)
@@ -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)