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
This commit is contained in:
Simon Meers 2011-06-26 21:27:44 +00:00
parent 20dc647ba8
commit bda5ed5700
1 changed files with 4 additions and 3 deletions

View File

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