Ticket #6224: ar_lf_fixes-r6941.diff

File ar_lf_fixes-r6941.diff, 2.6 KB (added by Ramiro Morales, 17 years ago)
  • django/contrib/localflavor/ar/forms.py

    diff -r 927baafd8ee3 django/contrib/localflavor/ar/forms.py
    a b class ARProvinceSelect(Select):  
    2020
    2121class ARPostalCodeField(RegexField):
    2222    """
    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.
    2424
    2525    See http://www.correoargentino.com.ar/consulta_cpa/home.php
    2626    """
    class ARPostalCodeField(RegexField):  
    4444
    4545class ARDNIField(CharField):
    4646    """
    47     A field that validates `Documento Nacional de Identidad´ (DNI) numbers.
     47    A field that validates `Documento Nacional de Identidad´ (DNI) numbers.
    4848    """
    4949    default_error_messages = {
    5050        'invalid': ugettext("This field requires only numbers."),
    class ARDNIField(CharField):  
    7373
    7474class ARCUITField(RegexField):
    7575    """
    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
    7777    CUIT is of the form XX-XXXXXXXX-V. The last digit is a check digit.
    7878    """
    7979    default_error_messages = {
  • docs/localflavor.txt

    diff -r 927baafd8ee3 docs/localflavor.txt
    a b postal code or a CPA_.  
    103103
    104104.. _CPA: http://www.correoargentino.com.ar/consulta_cpa/home.php
    105105
     106ARDNIField
     107----------
     108
     109A form field that validates input as a Documento Nacional de Identidad (DNI)
     110number.
     111
     112ARCUITField
     113-----------
     114
     115A form field that validates input as a Código Único de Identificación
     116Tributaria (CUIT) number.
     117
    106118ARProvinceSelect
    107119----------------
    108120
    109 A ``Select`` widget that uses a list of Argentina's provinces as its choices.
     121A ``Select`` widget that uses a list of Argentina's provinces and autonomous
     122city as its choices.
    110123
    111124
    112125Australia (``django.contrib.localflavor.au``)
    A ``Select`` widget that uses a list of  
    622635A ``Select`` widget that uses a list of UK nations as its choices.
    623636
    624637
    625 United States of America (``django.contrib.localflavor.us``) 
     638United States of America (``django.contrib.localflavor.us``)
    626639============================================================
    627640
    628641USPhoneNumberField
    USStateField  
    647660USStateField
    648661------------
    649662
    650 A form field that validates input as a U.S. state name or abbreviation. It 
     663A form field that validates input as a U.S. state name or abbreviation. It
    651664normalizes the input to the standard two-letter postal service abbreviation
    652665for the given state.
    653666
Back to Top