Chile (cl)

Forms

Chile specific form helpers.

class localflavor.cl.forms.CLRegionSelect(attrs=None)[source]

A Select widget that uses a list of Chilean Regions (Regiones) as its choices.

class localflavor.cl.forms.CLRutField(*args, **kwargs)[source]

Chilean “Rol Unico Tributario” (RUT) field. This is the Chilean national identification number.

Samples for testing are available from https://palena.sii.cl/cvc/dte/ee_empresas_emisoras.html

clean(value)[source]

Check and clean the Chilean RUT.

Data

localflavor.cl.cl_regions.REGION_CHOICES = ((u'RM', u'Regi\xf3n Metropolitana de Santiago'), (u'I', u'Regi\xf3n de Tarapac\xe1'), (u'II', u'Regi\xf3n de Antofagasta'), (u'III', u'Regi\xf3n de Atacama'), (u'IV', u'Regi\xf3n de Coquimbo'), (u'V', u'Regi\xf3n de Valpara\xedso'), (u'VI', u"Regi\xf3n del Libertador Bernardo O'Higgins"), (u'VII', u'Regi\xf3n del Maule'), (u'VIII', u'Regi\xf3n del B\xedo B\xedo'), (u'IX', u'Regi\xf3n de la Araucan\xeda'), (u'X', u'Regi\xf3n de los Lagos'), (u'XI', u'Regi\xf3n de Ays\xe9n del General Carlos Ib\xe1\xf1ez del Campo'), (u'XII', u'Regi\xf3n de Magallanes y la Ant\xe1rtica Chilena'), (u'XIV', u'Regi\xf3n de Los R\xedos'), (u'XV', u'Regi\xf3n de Arica-Parinacota'))

A list of Chilean regions as choices in a formfield.