Permalink
Browse files

Fixed #1110 -- wordwrap template filter now calls str() on input. Tha…

…nks, scum

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a5005c2 commit 580a8eb42f3b998637fe629f8e40ddd822b6cfcf @adrianholovaty adrianholovaty committed Jan 9, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/template/defaultfilters.py
@@ -136,7 +136,7 @@ def wordwrap(value, arg):
Argument: number of words to wrap the text at.
"""
from django.utils.text import wrap
- return wrap(value, int(arg))
+ return wrap(str(value), int(arg))
def ljust(value, arg):
"""

0 comments on commit 580a8eb

Please sign in to comment.