app/django/contrib/localflavor/cl/cl_regions.py
author Sverre Rabbelier <srabbelier@gmail.com>
Mon, 03 Nov 2008 19:47:02 +0000
changeset 439 0658c3c9a9dc
parent 54 03e267d67478
permissions -rw-r--r--
Minor fixes needed for generic key name We no longer try to retreive an entity when there are unset fields. This sort of makes 'getIfFields' obsolete, since we check if fields now anyway. This is needed because getKeyFieldsFromDict expects the fields to be set. Also a minor fix in a Django template so that the generic 'edit' page has a working delete button again.

# -*- coding: utf-8 -*-
"""
A list of Chilean regions as `choices` in a formfield.

This exists in this standalone file so that it's only imported into memory
when explicitly needed.
"""

REGION_CHOICES = (
    ('RM',  u'Región Metropolitana de Santiago'),
    ('I',   u'Región de Tarapacá'),
    ('II',  u'Región de Antofagasta'),
    ('III', u'Región de Atacama'),
    ('IV',  u'Región de Coquimbo'),
    ('V',   u'Región de Valparaíso'),
    ('VI',  u'Región del Libertador Bernardo O\'Higgins'),
    ('VII', u'Región del Maule'),
    ('VIII',u'Región del Bío Bío'),
    ('IX',  u'Región de la Araucanía'),
    ('X',   u'Región de los Lagos'),
    ('XI',  u'Región de Aysén del General Carlos Ibáñez del Campo'),
    ('XII', u'Región de Magallanes y la Antártica Chilena'),
    ('XIV', u'Región de Los Ríos'),
    ('XV',  u'Región de Arica-Parinacota'),
)