Django

Code

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

Revision 7294, 1.2 kB (checked in by mtredinnick, 6 months ago)

Added "svn:eol-style native" to every text file in the tree (*.txt, *.html,
*.py, *.xml and AUTHORS, etc). Added "svn:ignore *.pyc" to some directories in
tests/regressiontests/ that were previously missing it.

Fixed #6545, #6801.

  • Property svn:eol-style set to native
Line 
1 # -*- coding: utf-8 -*-
2 """
3 A list of Mexican states for use as `choices` in a formfield.
4
5 This exists in this standalone file so that it's only imported into memory
6 when explicitly needed.
7 """
8
9 from django.utils.translation import ugettext_lazy as _
10
11 STATE_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 )
Note: See TracBrowser for help on using the browser.