mirror of
https://github.com/django/django.git
synced 2025-06-06 03:59:12 +00:00
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…
x
Reference in New Issue
Block a user