diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-02-13 15:33:25 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-02-13 15:33:25 +0000 |
| commit | f732217c0a80d055976497a9c07c330db0ae76bb (patch) | |
| tree | 7fd513815a9a646af5cbd9ff29ee82aac4eeea98 /docs | |
| parent | 906e5dac0d4a8ec66bb28fbe3d954df6245b6b18 (diff) | |
Added better docs for 'phone2numeric' template filter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/templates.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/templates.txt b/docs/templates.txt index d210ec2f77..c758189b7f 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -924,7 +924,12 @@ digits. For a string, it's a list of characters. phone2numeric ~~~~~~~~~~~~~ -Converts a phone number to its numerical equivalent. +Converts a phone number (possibly containing letters) to its numerical +equivalent. For example, ``'800-COLLECT'`` will be converted to +``'800-2655328'``. + +The input doesn't have to be a valid phone number. This will happily convert +any string. pluralize ~~~~~~~~~ |
