From 6f7aa51b2c3fbcbbc76404cee3cbe511feabaf1f Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Mon, 9 Apr 2012 17:25:02 +0000 Subject: 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 --- docs/ref/contrib/localflavor.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs') 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``) ======================== -- cgit v1.3