summaryrefslogtreecommitdiff
path: root/django/utils/text.py
diff options
context:
space:
mode:
authorNot Carl <carl@rkive.org>2012-04-28 03:33:37 -0400
committerNot Carl <carl@rkive.org>2012-04-28 03:33:37 -0400
commita7829f33349f0778d52c35615465b11e42e573b4 (patch)
treee422df3918d39a2570f3bda72ef1934b0f00d82e /django/utils/text.py
parentcfe552ccb39e15544bbb1ab1eccc41081e0c6441 (diff)
forgot the allow_lazy(phone2numeric)
Diffstat (limited to 'django/utils/text.py')
-rw-r--r--django/utils/text.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/text.py b/django/utils/text.py
index 7d0a86e820..42a2b50f16 100644
--- a/django/utils/text.py
+++ b/django/utils/text.py
@@ -272,6 +272,7 @@ def phone2numeric(phone):
'u': '8', 'v': '8', 'w': '9', 'x': '9', 'y': '9', 'z': '9',
}
return u''.join(char2number.get(c,c) for c in phone.lower())
+phone2numeric = allow_lazy(phone2numeric)
# From http://www.xhaus.com/alan/python/httpcomp.html#gzip
# Used with permission.