#14608: Adding a INPhoneNumberField to indian localflavor
---------------------------------------+-----------------------------------
               Reporter:  lawgon       |        Owner:  lawgon
                   Type:  New feature  |       Status:  reopened
              Milestone:               |    Component:  contrib.localflavor
                Version:  SVN          |     Severity:  Normal
             Resolution:               |     Keywords:  india phone
           Triage Stage:  Accepted     |    Has patch:  1
    Needs documentation:  1            |  Needs tests:  0
Patch needs improvement:  0            |
---------------------------------------+-----------------------------------

Comment (by lawgon):

 class in_.forms.INPhoneNumberField validates that the data is a valid
 Indian phone number, including the STD code. It's normalised to 0XXX-
 XXXXXXX or 0XXX XXXXXXX format. The first string is the STD code which is
 a '0' followed by 2-4 digits. The second string is 8 digits if the STD
 code is 3 digits, 7 digits if the STD code is 4 digits and 6 digits if the
 STD code is 5 digits. The second string will start with numbers between 1
 and 6. The separator is either a space or a hyphen.

 This is the documentation (I had put it in the doctests file which has now
 been left out) - It is now in the docstring. Will upload the latest patch.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14608#comment:18>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to