From d8ef686e2451c86e327af6a665e24b3a157d90b6 Mon Sep 17 00:00:00 2001 From: Simon Meers Date: Sun, 26 Jun 2011 21:29:13 +0000 Subject: [PATCH] [1.3.X] Fixed #16297 -- make_list documentation error regarding integers. Thanks ned and teraom. Backport of r16468 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16469 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 695bc87172..7d24c1dc00 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1714,8 +1714,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:: @@ -1723,7 +1724,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