projects
/
matthijs
/
projects
/
xerxes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use force_unicode() instead of .__unicode__().
[matthijs/projects/xerxes.git]
/
tools
/
templatetags
/
list.py
diff --git
a/tools/templatetags/list.py
b/tools/templatetags/list.py
index 70ce860d978a0d03c83775ac5c4192e486f3cfa3..87d797684e1deebbc7e36a55bf5e2708fe598d20 100644
(file)
--- 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