diff --git a/django/contrib/localflavor/es/forms.py b/django/contrib/localflavor/es/forms.py
index b61860d..000f695 100644
|
a
|
b
|
class ESPhoneNumberField(RegexField):
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | def __init__(self, *args, **kwargs): |
| 44 | | super(ESPhoneNumberField, self).__init__(r'^(6|8|9)\d{8}$', |
| | 44 | super(ESPhoneNumberField, self).__init__(r'^(6|7|8|9)\d{8}$', |
| 45 | 45 | max_length=None, min_length=None, *args, **kwargs) |
| 46 | 46 | |
| 47 | 47 | class ESIdentityCardNumberField(RegexField): |
diff --git a/tests/regressiontests/forms/localflavor/es.py b/tests/regressiontests/forms/localflavor/es.py
index b584075..95a94c4 100644
|
a
|
b
|
class ESLocalFlavorTests(LocalFlavorTestCase):
|
| 108 | 108 | '650010101': '650010101', |
| 109 | 109 | '931234567': '931234567', |
| 110 | 110 | '800123123': '800123123', |
| | 111 | '789789789': '789789789', |
| 111 | 112 | } |
| 112 | 113 | invalid = { |
| 113 | 114 | '555555555': error_invalid, |
| 114 | | '789789789': error_invalid, |
| | 115 | '489489489': error_invalid, |
| 115 | 116 | '99123123': error_invalid, |
| 116 | 117 | '9999123123': error_invalid, |
| 117 | 118 | } |