X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=tools%2Ftemplatetags%2Flist.py;fp=tools%2Ftemplatetags%2Flist.py;h=87d797684e1deebbc7e36a55bf5e2708fe598d20;hb=926e20fad179f5bf6a1ddf4e2fdbc672c175a7af;hp=70ce860d978a0d03c83775ac5c4192e486f3cfa3;hpb=e42f0a675873dd8f315b166095d7d08dd712488e;p=matthijs%2Fprojects%2Fxerxes.git diff --git a/tools/templatetags/list.py b/tools/templatetags/list.py index 70ce860..87d7976 100644 --- a/tools/templatetags/list.py +++ b/tools/templatetags/list.py @@ -43,12 +43,12 @@ def natural_list(list): for item in list[0:-1]: if res: res += ', ' - res += item.__unicode__() + res += force_unicode(item) if res: res += ' %s ' % _('and') - res += list[-1].__unicode__() + res += force_unicode(list[-1]) return res natural_list.is_safe = True