diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-08-03 09:36:16 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-08-03 09:36:16 -0400 |
commit | 8d2355bb381540740e81804ed56cce92ca4d0a69 (patch) | |
tree | 5dcb063cc9c4d955e490f5129ccedacd6fca07b1 | |
parent | e4c1ac6ae6921c9c6efc8d3fe2e0f1bbffcc5936 (diff) | |
download | askbot-8d2355bb381540740e81804ed56cce92ca4d0a69.tar.gz askbot-8d2355bb381540740e81804ed56cce92ca4d0a69.tar.bz2 askbot-8d2355bb381540740e81804ed56cce92ca4d0a69.zip |
fixed the unicode issue in template filter collapse and a misuse of a function in user_stats.html
-rw-r--r-- | askbot/skins/default/templates/user_profile/user_stats.html | 2 | ||||
-rw-r--r-- | askbot/templatetags/extra_filters_jinja.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/askbot/skins/default/templates/user_profile/user_stats.html b/askbot/skins/default/templates/user_profile/user_stats.html index 8cae46c2..3fc8019b 100644 --- a/askbot/skins/default/templates/user_profile/user_stats.html +++ b/askbot/skins/default/templates/user_profile/user_stats.html @@ -117,7 +117,7 @@ {% if award.content_type in (question_type, answer_type) %} <li> <a - title="{{ award.content_object.get_snippet|collapse }}" + title="{{ award.content_object.get_snippet()|collapse }}" href="{{ award.content_object.get_absolute_url() }}" >{% if award.content_type == answer_type %}{% trans %}Answer to:{% endtrans %}{% endif %} {{ award.content_object.get_origin_post().title }}</a> </li> diff --git a/askbot/templatetags/extra_filters_jinja.py b/askbot/templatetags/extra_filters_jinja.py index 94bd304c..b74502df 100644 --- a/askbot/templatetags/extra_filters_jinja.py +++ b/askbot/templatetags/extra_filters_jinja.py @@ -41,7 +41,7 @@ def country_flag_url(country_code): @register.filter def collapse(input): - input = str(input) + input = unicode(input) return ' '.join(input.split()) @register.filter |