Skip to content

Commit

Permalink
[1.3.X] Fixed django#16297 -- make_list documentation error regarding…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
DrMeers committed Jun 26, 2011
1 parent a0285bb commit d8ef686
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/ref/templates/builtins.txt
Expand Up @@ -1714,16 +1714,17 @@ 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::

{{ value|make_list }}

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

Expand Down

0 comments on commit d8ef686

Please sign in to comment.