Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.3.X] Fixed #16297 -- make_list documentation error regarding integ…

…ers. 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
  • Loading branch information...
commit d8ef686e2451c86e327af6a665e24b3a157d90b6 1 parent a0285bb
@DrMeers DrMeers authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 docs/ref/templates/builtins.txt
View
7 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

0 comments on commit d8ef686

Please sign in to comment.
Something went wrong with that request. Please try again.