From c29e45491ea2e2a689299abda1b722ff814efd80 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sun, 3 Jul 2011 17:56:15 +0000 Subject: 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 --- docs/ref/contrib/localflavor.txt | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'docs') 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``) ================ -- cgit v1.3