From bda5ed5700445a6c916d2ac7c45db1ed1897a974 Mon Sep 17 00:00:00 2001 From: Simon Meers Date: Sun, 26 Jun 2011 21:27:44 +0000 Subject: [PATCH] Fixed #16297 -- make_list documentation error regarding integers. Thanks ned and teraom. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16468 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/templates/builtins.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 24e650e16b..7cbbeb3188 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1746,8 +1746,9 @@ If ``value`` is ``Still MAD At Yoko``, the output will be ``still mad at yoko``. make_list ~~~~~~~~~ -Returns the value turned into a list. For an integer, it's a list of -digits. For a string, it's a list of characters. +Returns the value turned into a list. For a string, it's a list of characters. +For an integer, the argument is cast into an unicode string before creating a +list. For example:: @@ -1755,7 +1756,7 @@ For example:: If ``value`` is the string ``"Joel"``, the output would be the list ``[u'J', u'o', u'e', u'l']``. If ``value`` is ``123``, the output will be the -list ``[1, 2, 3]``. +list ``[u'1', u'2', u'3']``. .. templatefilter:: phone2numeric