mirror of https://github.com/django/django.git
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:
parent
20dc647ba8
commit
bda5ed5700
|
@ -1746,8 +1746,9 @@ If ``value`` is ``Still MAD At Yoko``, the output will be ``still mad at yoko``.
|
||||||
make_list
|
make_list
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
|
|
||||||
Returns the value turned into a list. For an integer, it's a list of
|
Returns the value turned into a list. For a string, it's a list of characters.
|
||||||
digits. 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::
|
For example::
|
||||||
|
|
||||||
|
@ -1755,7 +1756,7 @@ For example::
|
||||||
|
|
||||||
If ``value`` is the string ``"Joel"``, the output would be the 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
|
``[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
|
.. templatefilter:: phone2numeric
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue