Ticket #6224: ar_lf_fixes-r6994.diff

File ar_lf_fixes-r6994.diff, 2.6 KB (added by Ramiro Morales, 17 years ago)

Updated patch so it applies cleanly after the r6946 changes

  • django/contrib/localflavor/ar/forms.py

    diff -r de774a027c8a 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 de774a027c8a docs/localflavor.txt
    a b postal code or a CPA_.  
    111111
    112112.. _CPA: http://www.correoargentino.com.ar/consulta_cpa/home.php
    113113
     114ARDNIField
     115----------
     116
     117A form field that validates input as a Documento Nacional de Identidad (DNI)
     118number.
     119
     120ARCUITField
     121-----------
     122
     123A form field that validates input as a Código Único de Identificación
     124Tributaria (CUIT) number.
     125
    114126ARProvinceSelect
    115127----------------
    116128
    117 A ``Select`` widget that uses a list of Argentina's provinces as its choices.
     129A ``Select`` widget that uses a list of Argentina's provinces and autonomous
     130city as its choices.
    118131
    119132Australia (``django.contrib.localflavor.au``)
    120133=============================================
    UKNationSelect  
    608621
    609622A ``Select`` widget that uses a list of UK nations as its choices.
    610623
    611 United States of America (``django.contrib.localflavor.us``) 
     624United States of America (``django.contrib.localflavor.us``)
    612625============================================================
    613626
    614627USPhoneNumberField
    USStateField  
    633646USStateField
    634647------------
    635648
    636 A form field that validates input as a U.S. state name or abbreviation. It 
     649A form field that validates input as a U.S. state name or abbreviation. It
    637650normalizes the input to the standard two-letter postal service abbreviation
    638651for the given state.
    639652
Back to Top