diff options
| author | Simon Meers <simon@simonmeers.com> | 2011-06-26 21:27:44 +0000 |
|---|---|---|
| committer | Simon Meers <simon@simonmeers.com> | 2011-06-26 21:27:44 +0000 |
| commit | bda5ed5700445a6c916d2ac7c45db1ed1897a974 (patch) | |
| tree | 96f92aa745990fdbfe0d5d88865590e5d0d44574 /docs/ref | |
| parent | 20dc647ba82a03b0e8ce58c9040b69fe67e2d141 (diff) | |
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
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 24e650e16b..7cbbeb3188 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -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 |
