[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
This commit is contained in:
Simon Meers 2011-06-26 21:29:13 +00:00
parent a0285bb612
commit d8ef686e24
1 changed files with 4 additions and 3 deletions

View File

@ -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