1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

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
This commit is contained in:
Julien Phalip
2012-04-09 17:25:02 +00:00
parent 883c38c499
commit 6f7aa51b2c
7 changed files with 128 additions and 0 deletions

View File

@@ -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``)
========================