diff options
| author | Gabriel Hurley <gabehr@gmail.com> | 2010-10-15 09:31:59 +0000 |
|---|---|---|
| committer | Gabriel Hurley <gabehr@gmail.com> | 2010-10-15 09:31:59 +0000 |
| commit | d0a056bcff57c7c870d66ca7e827d54fece2899b (patch) | |
| tree | 9226f1369a8211a25d5af817108ab49bd3c336da /docs | |
| parent | 7ddeb86cb6a872059311269baf9da412be753e84 (diff) | |
[1.2.X] Fixed #14376 -- added docs for previously undocumented Brazilian localflavor fields. Thanks to henriquebastos for the report and patch.
Backport of [14229] from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14230 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/localflavor.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/ref/contrib/localflavor.txt b/docs/ref/contrib/localflavor.txt index 48cfa6340a..2eb731de3f 100644 --- a/docs/ref/contrib/localflavor.txt +++ b/docs/ref/contrib/localflavor.txt @@ -200,6 +200,23 @@ Brazil (``br``) A ``Select`` widget that uses a list of Brazilian states/territories as its choices. +.. class:: br.forms.BRCPFField + + A form field that validates input as `Brazilian CPF`_. + + Input can either be of the format XXX.XXX.XXX-VD or be a group of 11 digits. + +.. _Brazilian CPF: http://en.wikipedia.org/wiki/Cadastro_de_Pessoas_F%C3%ADsicas + +.. class:: br.forms.BRCNPJField + + A form field that validates input as `Brazilian CNPJ`_. + + Input can either be of the format XX.XXX.XXX/XXXX-XX or be a group of 14 + digits. + +.. _Brazilian CNPJ: http://en.wikipedia.org/wiki/National_identification_number#Brazil + Canada (``ca``) =============== |
