Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #14376 -- added docs for previously undocumented Brazilian loca…

…lflavor fields. Thanks to henriquebastos for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14229 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2197b56f3034a1fe6c7ba95848cedc7e41f0580c 1 parent c20f2f2
Gabriel Hurley authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 docs/ref/contrib/localflavor.txt
View
17 docs/ref/contrib/localflavor.txt
@@ -231,6 +231,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``)
===============
Please sign in to comment.
Something went wrong with that request. Please try again.