diff options
| author | Simon Meers <simon@simonmeers.com> | 2011-06-26 21:29:13 +0000 |
|---|---|---|
| committer | Simon Meers <simon@simonmeers.com> | 2011-06-26 21:29:13 +0000 |
| commit | d8ef686e2451c86e327af6a665e24b3a157d90b6 (patch) | |
| tree | aed701d1b465ea391945003b24b6d59381502460 /docs/ref/templates | |
| parent | a0285bb612a607d1af6a6a5afdf7205434a4ec7a (diff) | |
[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
Diffstat (limited to 'docs/ref/templates')
| -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 695bc87172..7d24c1dc00 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -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 |
