summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2010-01-01 21:35:26 +0000
committerJannis Leidel <jannis@leidel.info>2010-01-01 21:35:26 +0000
commit63662ff924ccea2d19486f0b7d525c3d2341c12c (patch)
treeec35260e9f77c2f369e2498c17fa59fcc37db768 /docs
parente0dc28df5517d44dab05c01d1e8855711dab6c0a (diff)
Fixed #8735 - Added Portuguese (pt) local flavor. Thanks Alcides Fonseca for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/localflavor.txt21
1 files changed, 18 insertions, 3 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt
index 81c6f2431b..1c58e2d5e8 100644
--- a/docs/ref/contrib/localflavor.txt
+++ b/docs/ref/contrib/localflavor.txt
@@ -60,6 +60,7 @@ Countries currently supported by :mod:`~django.contrib.localflavor` are:
* Norway_
* Peru_
* Poland_
+ * Portugal_
* Romania_
* Slovakia_
* `South Africa`_
@@ -105,6 +106,7 @@ Here's an example of how to use them::
.. _Norway: `Norway (no)`_
.. _Peru: `Peru (pe)`_
.. _Poland: `Poland (pl)`_
+.. _Portugal: `Portugal (pt)`_
.. _Romania: `Romania (ro)`_
.. _Slovakia: `Slovakia (sk)`_
.. _South Africa: `South Africa (za)`_
@@ -498,17 +500,17 @@ Norway (``no``)
Peru (``pe``)
=============
-.. class:: pt.forms.PEDNIField
+.. class:: pe.forms.PEDNIField
A form field that validates input as a DNI (Peruvian national identity)
number.
-.. class:: pt.forms.PERUCField
+.. class:: pe.forms.PERUCField
A form field that validates input as an RUC (Registro Unico de
Contribuyentes) number. Valid RUC numbers have 11 digits.
-.. class:: pt.forms.PEDepartmentSelect
+.. class:: pe.forms.PEDepartmentSelect
A ``Select`` widget that uses a list of Peruvian Departments as its choices.
@@ -552,6 +554,19 @@ Poland (``pl``)
A ``Select`` widget that uses a list of Polish voivodeships (administrative
provinces) as its choices.
+Portugal (``pt``)
+=================
+
+.. class:: pt.forms.PTZipCodeField
+
+ A form field that validates input as a Portuguese zip code.
+
+.. class:: pt.forms.PTPhoneNumberField
+
+ A form field that validates input as a Portuguese phone number.
+ Valid numbers have 9 digits (may include spaces) or start by 00
+ or + (international).
+
Romania (``ro``)
================