diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-10-15 02:58:10 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-10-15 02:58:10 +0000 |
| commit | 5a8e40a03fd03f3ab88fb21845dd704833f3f133 (patch) | |
| tree | 26fe9b8c5683f9932a081a13736cfae85cd91f13 /docs | |
| parent | 2e8bc8f9862f127b0e69766c7fc7dc92f3156d20 (diff) | |
Fixed #11350 -- added an Israeli localflavor. Thanks to Yuval and Idan Gazit for their work on the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/localflavor.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt index ae81248f24..b2515e4fd7 100644 --- a/docs/ref/contrib/localflavor.txt +++ b/docs/ref/contrib/localflavor.txt @@ -51,6 +51,7 @@ Countries currently supported by :mod:`~django.contrib.localflavor` are: * India_ * Indonesia_ * Ireland_ + * Israel_ * Italy_ * Japan_ * Kuwait_ @@ -99,6 +100,7 @@ Here's an example of how to use them:: .. _India: `India (in\_)`_ .. _Indonesia: `Indonesia (id)`_ .. _Ireland: `Ireland (ie)`_ +.. _Israel: `Israel (il)`_ .. _Italy: `Italy (it)`_ .. _Japan: `Japan (jp)`_ .. _Kuwait: `Kuwait (kw)`_ @@ -446,6 +448,28 @@ Indonesia (``id``) .. _NIK: http://en.wikipedia.org/wiki/Indonesian_identity_card +Israel (``il``) +=============== + +.. class: il.forms.ILPostalCodeField + + A form field that validates its input as an Israeli five-digit postal code. + +.. class:: il.forms.ILIDNumberField + + A form field that validates its input as an `Israeli identification number`_. + The output will be in the format of a 2-9 digit number, consisting of a + 1-8 digit ID number followed by a single checksum digit, calculated using the `Luhn + algorithm.`_. + + Input may contain an optional hyphen separating the ID number from the checksum + digit. + +.. _Israeli identification number: http://he.wikipedia.org/wiki/%D7%9E%D7%A1%D7%A4%D7%A8_%D7%96%D7%94%D7%95%D7%AA_(%D7%99%D7%A9%D7%A8%D7%90%D7%9C) +.. _Luhn algorithm: http://en.wikipedia.org/wiki/Luhn_algorithm + + + Italy (``it``) ============== |
