Opened 4 years ago

Closed 4 years ago

#15640 closed Bug (fixed)

New initial digit in Spain phone numbers

Reported by: fenikso Owned by: nobody
Component: contrib.localflavor Version: master
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:

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 4 years ago.
Addition of digit "7" on phone number
15640.diff (1.3 KB) - added by claudep 4 years ago.
Patch with tests

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by fenikso

Addition of digit "7" on phone number

comment:1 Changed 4 years ago by julien

  • Has patch set
  • Needs documentation unset
  • Needs tests set
  • Patch needs improvement set
  • Triage Stage changed from Unreviewed to Accepted

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 Changed 4 years ago by lukeplant

  • Type set to Bug

comment:3 Changed 4 years ago by lukeplant

  • Severity set to Normal

Changed 4 years ago by claudep

Patch with tests

comment:4 Changed 4 years ago by claudep

  • Easy pickings unset
  • Needs tests unset
  • Patch needs improvement unset
  • Version changed from 1.3-rc1 to SVN

comment:5 Changed 4 years ago by julien

  • Triage Stage changed from Accepted to Ready for checkin

comment:6 Changed 4 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

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