summaryrefslogtreecommitdiff
path: root/docs/ref/contrib
diff options
context:
space:
mode:
authorJulien Phalip <jphalip@gmail.com>2012-04-09 17:25:02 +0000
committerJulien Phalip <jphalip@gmail.com>2012-04-09 17:25:02 +0000
commit6f7aa51b2c3fbcbbc76404cee3cbe511feabaf1f (patch)
tree58a647367f40898226421b4b7aaf165ef1b54f14 /docs/ref/contrib
parent883c38c499d58ec1c8182933de88f7d1164387e3 (diff)
Fixed #17864 -- Added Hong Kong localflavor. Thanks to mrkschan and Adrien Lemaire.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17886 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/contrib')
-rw-r--r--docs/ref/contrib/localflavor.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt
index 8ad8b8e9d6..61c8c7ae47 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:
* Finland_
* France_
* Germany_
+* `Hong Kong`_
* Iceland_
* India_
* Indonesia_
@@ -108,6 +109,7 @@ Here's an example of how to use them::
.. _Finland: `Finland (fi)`_
.. _France: `France (fr)`_
.. _Germany: `Germany (de)`_
+.. _Hong Kong: `Hong Kong (hk)`_
.. _The Netherlands: `The Netherlands (nl)`_
.. _Iceland: `Iceland (is\_)`_
.. _India: `India (in\_)`_
@@ -560,6 +562,14 @@ Germany (``de``)
A ``Select`` widget that uses a list of German states as its choices.
+Hong Kong (``hk``)
+==================
+
+.. class:: hk.forms.HKPhoneNumberField
+
+ A form field that validates input as a Hong Kong phone number.
+
+
The Netherlands (``nl``)
========================