Argentina (ar)

AR-specific Form helpers.

class localflavor.ar.forms.ARCUITField(max_length=None, min_length=None, *args, **kwargs)[source]

This field validates a CUIT (Código Único de Identificación Tributaria). A CUIT is of the form XX-XXXXXXXX-V. The last digit is a check digit.

More info: http://es.wikipedia.org/wiki/Clave_%C3%9Anica_de_Identificaci%C3%B3n_Tributaria

English info: http://www.justlanded.com/english/Argentina/Argentina-Guide/Visas-Permits/Other-Legal-Documents

clean(value)[source]

Value can be either a string in the format XX-XXXXXXXX-X or an 11-digit number.

class localflavor.ar.forms.ARDNIField(max_length=10, min_length=7, *args, **kwargs)[source]

A field that validates ‘Documento Nacional de Identidad’ (DNI) numbers.

clean(value)[source]

Value can be a string either in the [X]X.XXX.XXX or [X]XXXXXXX formats.

class localflavor.ar.forms.ARPostalCodeField(max_length=8, min_length=4, *args, **kwargs)[source]

A field that accepts a ‘classic’ NNNN Postal Code or a CPA.

See:
http://www.correoargentino.com.ar/cpa/que_es http://www.correoargentino.com.ar/cpa/como_escribirlo
class localflavor.ar.forms.ARProvinceSelect(attrs=None)[source]

A Select widget that uses a list of Argentinean provinces/autonomous cities as its choices.

localflavor.ar.ar_provinces.PROVINCE_CHOICES = ((u'B', <django.utils.functional.__proxy__ object at 0x7f953fcb6550>), (u'K', <django.utils.functional.__proxy__ object at 0x7f953fcb6a10>), (u'H', <django.utils.functional.__proxy__ object at 0x7f953fcb6650>), (u'U', <django.utils.functional.__proxy__ object at 0x7f953fcb6990>), (u'C', <django.utils.functional.__proxy__ object at 0x7f953fcb6f50>), (u'X', <django.utils.functional.__proxy__ object at 0x7f953fcb6e90>), (u'W', <django.utils.functional.__proxy__ object at 0x7f953fcb6f90>), (u'E', <django.utils.functional.__proxy__ object at 0x7f953fcb65d0>), (u'P', <django.utils.functional.__proxy__ object at 0x7f953fcb6790>), (u'Y', <django.utils.functional.__proxy__ object at 0x7f953fcb6690>), (u'L', <django.utils.functional.__proxy__ object at 0x7f953fcb6710>), (u'F', <django.utils.functional.__proxy__ object at 0x7f953fcb64d0>), (u'M', <django.utils.functional.__proxy__ object at 0x7f953fcb6410>), (u'N', <django.utils.functional.__proxy__ object at 0x7f953fcdf090>), (u'Q', <django.utils.functional.__proxy__ object at 0x7f953fcdf110>), (u'R', <django.utils.functional.__proxy__ object at 0x7f953fcdf190>), (u'A', <django.utils.functional.__proxy__ object at 0x7f953fcdf210>), (u'J', <django.utils.functional.__proxy__ object at 0x7f953fcdf290>), (u'D', <django.utils.functional.__proxy__ object at 0x7f953fcdf310>), (u'Z', <django.utils.functional.__proxy__ object at 0x7f953fcdf390>), (u'S', <django.utils.functional.__proxy__ object at 0x7f953fcdf410>), (u'G', <django.utils.functional.__proxy__ object at 0x7f953fcdf490>), (u'V', <django.utils.functional.__proxy__ object at 0x7f953fcdf510>), (u'T', <django.utils.functional.__proxy__ object at 0x7f953fcdf590>))

A list of Argentinean provinces and autonomous cities as choices in a formfield. From http://www.argentina.gov.ar/argentina/portal/paginas.dhtml?pagina=425