From f732217c0a80d055976497a9c07c330db0ae76bb Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 13 Feb 2006 15:33:25 +0000 Subject: [PATCH] Added better docs for 'phone2numeric' template filter git-svn-id: http://code.djangoproject.com/svn/django/trunk@2306 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/templates.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ~~~~~~~~~