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
This commit is contained in:
Jannis Leidel 2010-10-11 23:35:23 +00:00
parent d739737015
commit 6ddfe26932
7 changed files with 219 additions and 0 deletions

View file

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