From 580a8eb42f3b998637fe629f8e40ddd822b6cfcf Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 9 Jan 2006 02:08:29 +0000 Subject: [PATCH] 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 --- django/core/template/defaultfilters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/template/defaultfilters.py b/django/core/template/defaultfilters.py index f273fa0726..73394ead67 100644 --- a/django/core/template/defaultfilters.py +++ b/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): """