mirror of https://github.com/django/django.git
Removed unimplemented allow_letters option from USPhoneNumberField
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
08e406d146
commit
ec2eb4d18f
|
@ -18,10 +18,6 @@ class USZipCodeField(RegexField):
|
||||||
*args, **kwargs)
|
*args, **kwargs)
|
||||||
|
|
||||||
class USPhoneNumberField(Field):
|
class USPhoneNumberField(Field):
|
||||||
def __init__(self, allow_letters=True, *args, **kwargs):
|
|
||||||
self.allow_letters = allow_letters
|
|
||||||
super(USPhoneNumberField, self).__init__(*args, **kwargs)
|
|
||||||
|
|
||||||
def clean(self, value):
|
def clean(self, value):
|
||||||
super(USPhoneNumberField, self).clean(value)
|
super(USPhoneNumberField, self).clean(value)
|
||||||
if value in EMPTY_VALUES:
|
if value in EMPTY_VALUES:
|
||||||
|
|
Loading…
Reference in New Issue