Fixed #1110 -- wordwrap template filter now calls str() on input. Thanks, scum

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-01-09 02:08:29 +00:00
parent a5005c29be
commit 580a8eb42f
1 changed files with 1 additions and 1 deletions

View File

@ -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):
"""