Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16297 -- make_list documentation error regarding integers. Tha…

…nks ned and teraom.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit bda5ed5700445a6c916d2ac7c45db1ed1897a974 1 parent 20dc647
Simon Meers authored June 26, 2011

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  docs/ref/templates/builtins.txt
7  docs/ref/templates/builtins.txt
@@ -1746,8 +1746,9 @@ If ``value`` is ``Still MAD At Yoko``, the output will be ``still mad at yoko``.
1746 1746
 make_list
1747 1747
 ~~~~~~~~~
1748 1748
 
1749  
-Returns the value turned into a list. For an integer, it's a list of
1750  
-digits. For a string, it's a list of characters.
  1749
+Returns the value turned into a list. For a string, it's a list of characters.
  1750
+For an integer, the argument is cast into an unicode string before creating a
  1751
+list.
1751 1752
 
1752 1753
 For example::
1753 1754
 
@@ -1755,7 +1756,7 @@ For example::
1755 1756
 
1756 1757
 If ``value`` is the string ``"Joel"``, the output would be the list
1757 1758
 ``[u'J', u'o', u'e', u'l']``. If ``value`` is ``123``, the output will be the
1758  
-list ``[1, 2, 3]``.
  1759
+list ``[u'1', u'2', u'3']``.
1759 1760
 
1760 1761
 .. templatefilter:: phone2numeric
1761 1762
 

0 notes on commit bda5ed5

Please sign in to comment.
Something went wrong with that request. Please try again.