diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-10-11 23:35:23 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-10-11 23:35:23 +0000 |
| commit | 6ddfe269324ab4220b9e20ea86b6cc0197ab1fc2 (patch) | |
| tree | f52910cd12a4e71db94f2ad668e42800289a642a /docs | |
| parent | d7397370153b2b0766bb8e405b3c3299cc3835f8 (diff) | |
Fixed #14349 -- Added Belgium localflavor. Thanks for the report and patch, Laurent Luce.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/localflavor.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt index 48cfa6340a..ae81248f24 100644 --- a/docs/ref/contrib/localflavor.txt +++ b/docs/ref/contrib/localflavor.txt @@ -39,6 +39,7 @@ Countries currently supported by :mod:`~django.contrib.localflavor` are: * Argentina_ * Australia_ * Austria_ + * Belgium_ * Brazil_ * Canada_ * Chile_ @@ -85,6 +86,7 @@ Here's an example of how to use them:: .. _Argentina: `Argentina (ar)`_ .. _Australia: `Australia (au)`_ .. _Austria: `Austria (at)`_ +.. _Belgium: `Belgium (be)`_ .. _Brazil: `Brazil (br)`_ .. _Canada: `Canada (ca)`_ .. _Chile: `Chile (cl)`_ @@ -182,6 +184,33 @@ Austria (``at``) A form field that validates its input as an Austrian social security number. +Belgium (``be``) +================ + +.. versionadded:: 1.3 + +.. class:: be.forms.BEPhoneNumberField + + A form field that validates input as a Belgium phone number, with one of + the formats 0x xxx xx xx, 0xx xx xx xx, 04xx xx xx xx, 0x/xxx.xx.xx, + 0xx/xx.xx.xx, 04xx/xx.xx.xx, 0x.xxx.xx.xx, 0xx.xx.xx.xx, 04xx.xx.xx.xx, + 0xxxxxxxx or 04xxxxxxxx. + +.. class:: be.forms.BEPostalCodeField + + A form field that validates input as a Belgium postal code, in the range + and format 1XXX-9XXX. + +.. class:: be.forms.BEProvinceSelect + + A ``Select`` widget that uses a list of Belgium provinces as its + choices. + +.. class:: be.forms.BERegionSelect + + A ``Select`` widget that uses a list of Belgium regions as its + choices. + Brazil (``br``) =============== |
