PageRenderTime 26ms CodeModel.GetById 20ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/localflavor/mx/mx_states.py

https://code.google.com/p/mango-py/
Python | 45 lines | 36 code | 0 blank | 9 comment | 0 complexity | db79df1830afff99b23f326f8ca31bf8 MD5 | raw file
 1# -*- coding: utf-8 -*-
 2"""
 3A list of Mexican states for use as `choices` in a formfield.
 4
 5This exists in this standalone file so that it's only imported into memory
 6when explicitly needed.
 7"""
 8
 9from django.utils.translation import ugettext_lazy as _
10
11STATE_CHOICES = (
12    ('AGU', _(u'Aguascalientes')),
13    ('BCN', _(u'Baja California')),
14    ('BCS', _(u'Baja California Sur')),
15    ('CAM', _(u'Campeche')),
16    ('CHH', _(u'Chihuahua')),
17    ('CHP', _(u'Chiapas')),
18    ('COA', _(u'Coahuila')),
19    ('COL', _(u'Colima')),
20    ('DIF', _(u'Distrito Federal')),
21    ('DUR', _(u'Durango')),
22    ('GRO', _(u'Guerrero')),
23    ('GUA', _(u'Guanajuato')),
24    ('HID', _(u'Hidalgo')),
25    ('JAL', _(u'Jalisco')),
26    ('MEX', _(u'Estado de México')),
27    ('MIC', _(u'Michoacán')),
28    ('MOR', _(u'Morelos')),
29    ('NAY', _(u'Nayarit')),
30    ('NLE', _(u'Nuevo León')),
31    ('OAX', _(u'Oaxaca')),
32    ('PUE', _(u'Puebla')),
33    ('QUE', _(u'Querétaro')),
34    ('ROO', _(u'Quintana Roo')),
35    ('SIN', _(u'Sinaloa')),
36    ('SLP', _(u'San Luis Potosí')),
37    ('SON', _(u'Sonora')),
38    ('TAB', _(u'Tabasco')),
39    ('TAM', _(u'Tamaulipas')),
40    ('TLA', _(u'Tlaxcala')),
41    ('VER', _(u'Veracruz')),
42    ('YUC', _(u'Yucatán')),
43    ('ZAC', _(u'Zacatecas')),
44)
45