@register.filter(u'phone2numeric', is_safe=True)
def phone2numeric_filter(value):
 return phone2numeric(value)

@ register . filter ( u'phone2numeric' , is_safe = True ) def phone2numeric_filter ( value ) : return phone2numeric ( value )
takes a phone number and converts it in to its numerical equivalent .