Opened 14 years ago

Closed 14 years ago

#15640 closed Bug (fixed)

New initial digit in Spain phone numbers

Reported by: fenikso Owned by: nobody
Component: contrib.localflavor Version: dev
Severity: Normal Keywords: phone digit
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In django/contrib/localflavor/es/forms.py, the ESPhoneNumberField class allow only phone numbers where first digit is 6, 8 or 9.
Before ending year 2011 Spain will start to use cell numbers where first digit is 7 (in addition of actual 6).

Attachments (2)

forms.py (7.4 KB ) - added by fenikso 14 years ago.
Addition of digit "7" on phone number
15640.diff (1.3 KB ) - added by Claude Paroz 14 years ago.
Patch with tests

Download all attachments as: .zip

Change History (8)

by fenikso, 14 years ago

Attachment: forms.py added

Addition of digit "7" on phone number

comment:1 by Julien Phalip, 14 years ago

Has patch: set
Needs tests: set
Patch needs improvement: set
Triage Stage: UnreviewedAccepted

Accepting as per http://en.wikipedia.org/wiki/Telephone_numbers_in_Spain#Mobile_Phones

Could you please post a diff patch instead of the whole modified file? Please also provide some tests.

comment:2 by Luke Plant, 14 years ago

Type: Bug

comment:3 by Luke Plant, 14 years ago

Severity: Normal

by Claude Paroz, 14 years ago

Attachment: 15640.diff added

Patch with tests

comment:4 by Claude Paroz, 14 years ago

Easy pickings: unset
Needs tests: unset
Patch needs improvement: unset
Version: 1.3-rc1SVN

comment:5 by Julien Phalip, 14 years ago

Triage Stage: AcceptedReady for checkin

comment:6 by Jannis Leidel, 14 years ago

Resolution: fixed
Status: newclosed

In [16132]:

Fixed #15640 -- Added new initial digit in Spain phone numbers to localflavor's ESPhoneNumberField form field. Thanks, Claude Paroz.

Note: See TracTickets for help on using tickets.
Back to Top