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