Django

Code

Ticket #6224: ar_lf_fixes-r6994.diff

File ar_lf_fixes-r6994.diff, 2.6 kB (added by ramiro, 1 year ago)

Updated patch so it applies cleanly after the r6946 changes

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

    old new  
    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    """ 
     
    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."), 
     
    7373 
    7474class ARCUITField(RegexField): 
    7575    """ 
    76     This field validates a CUIT (C�o �ico de Identificaci�ributaria). 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 = { 
  • a/docs/localflavor.txt

    old new  
    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============================================= 
     
    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 
     
    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