summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-07-03 17:56:15 +0000
committerJannis Leidel <jannis@leidel.info>2011-07-03 17:56:15 +0000
commitc29e45491ea2e2a689299abda1b722ff814efd80 (patch)
tree69dc0b73f3225800ce67a2f8f1c1c31b5d7b2364 /docs
parent3bd23ee96fdff0572568eaa42d69c1ce2e46cc18 (diff)
Fixed #14608 -- Added phone number field to Indian local flavor. Thanks, lawgon and Julien Phalip.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/localflavor.txt18
1 files changed, 15 insertions, 3 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt
index 3ad5899239..60539e9663 100644
--- a/docs/ref/contrib/localflavor.txt
+++ b/docs/ref/contrib/localflavor.txt
@@ -576,22 +576,34 @@ Iceland (``is_``)
India (``in_``)
===============
-.. class:: in.forms.INStateField
+.. class:: in_.forms.INStateField
A form field that validates input as an Indian state/territory name or
abbreviation. Input is normalized to the standard two-letter vehicle
registration abbreviation for the given state or territory.
-.. class:: in.forms.INZipCodeField
+.. class:: in_.forms.INZipCodeField
A form field that validates input as an Indian zip code, with the
format XXXXXXX.
-.. class:: in.forms.INStateSelect
+.. class:: in_.forms.INStateSelect
A ``Select`` widget that uses a list of Indian states/territories as its
choices.
+.. versionadded:: 1.4
+
+.. class:: in_.forms.INPhoneNumberField
+
+ A form field that 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.
+
Ireland (``ie``)
================