diff -r de774a027c8a django/contrib/localflavor/ar/forms.py
a
|
b
|
class ARProvinceSelect(Select):
|
20 | 20 | |
21 | 21 | class ARPostalCodeField(RegexField): |
22 | 22 | """ |
23 | | A field that accepts a `classic´ NNNN Postal Code or a CPA. |
| 23 | A field that accepts a `classic´ NNNN Postal Code or a CPA. |
24 | 24 | |
25 | 25 | See http://www.correoargentino.com.ar/consulta_cpa/home.php |
26 | 26 | """ |
… |
… |
class ARPostalCodeField(RegexField):
|
44 | 44 | |
45 | 45 | class ARDNIField(CharField): |
46 | 46 | """ |
47 | | A field that validates `Documento Nacional de Identidad´ (DNI) numbers. |
| 47 | A field that validates `Documento Nacional de Identidad´ (DNI) numbers. |
48 | 48 | """ |
49 | 49 | default_error_messages = { |
50 | 50 | 'invalid': ugettext("This field requires only numbers."), |
… |
… |
class ARDNIField(CharField):
|
73 | 73 | |
74 | 74 | class ARCUITField(RegexField): |
75 | 75 | """ |
76 | | This field validates a CUIT (Código Único de Identificación Tributaria). A |
| 76 | This field validates a CUIT (Código Ãnico de Identificación Tributaria). A |
77 | 77 | CUIT is of the form XX-XXXXXXXX-V. The last digit is a check digit. |
78 | 78 | """ |
79 | 79 | default_error_messages = { |
diff -r de774a027c8a docs/localflavor.txt
a
|
b
|
postal code or a CPA_.
|
111 | 111 | |
112 | 112 | .. _CPA: http://www.correoargentino.com.ar/consulta_cpa/home.php |
113 | 113 | |
| 114 | ARDNIField |
| 115 | ---------- |
| 116 | |
| 117 | A form field that validates input as a Documento Nacional de Identidad (DNI) |
| 118 | number. |
| 119 | |
| 120 | ARCUITField |
| 121 | ----------- |
| 122 | |
| 123 | A form field that validates input as a Código Ãnico de Identificación |
| 124 | Tributaria (CUIT) number. |
| 125 | |
114 | 126 | ARProvinceSelect |
115 | 127 | ---------------- |
116 | 128 | |
117 | | A ``Select`` widget that uses a list of Argentina's provinces as its choices. |
| 129 | A ``Select`` widget that uses a list of Argentina's provinces and autonomous |
| 130 | city as its choices. |
118 | 131 | |
119 | 132 | Australia (``django.contrib.localflavor.au``) |
120 | 133 | ============================================= |
… |
… |
UKNationSelect
|
608 | 621 | |
609 | 622 | A ``Select`` widget that uses a list of UK nations as its choices. |
610 | 623 | |
611 | | United States of America (``django.contrib.localflavor.us``) |
| 624 | United States of America (``django.contrib.localflavor.us``) |
612 | 625 | ============================================================ |
613 | 626 | |
614 | 627 | USPhoneNumberField |
… |
… |
USStateField
|
633 | 646 | USStateField |
634 | 647 | ------------ |
635 | 648 | |
636 | | A form field that validates input as a U.S. state name or abbreviation. It |
| 649 | A form field that validates input as a U.S. state name or abbreviation. It |
637 | 650 | normalizes the input to the standard two-letter postal service abbreviation |
638 | 651 | for the given state. |
639 | 652 | |