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:
parent
a5005c29be
commit
580a8eb42f
|
@ -136,7 +136,7 @@ def wordwrap(value, arg):
|
||||||
Argument: number of words to wrap the text at.
|
Argument: number of words to wrap the text at.
|
||||||
"""
|
"""
|
||||||
from django.utils.text import wrap
|
from django.utils.text import wrap
|
||||||
return wrap(value, int(arg))
|
return wrap(str(value), int(arg))
|
||||||
|
|
||||||
def ljust(value, arg):
|
def ljust(value, arg):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue