Package django :: Package contrib :: Package localflavor :: Package in_ :: Module in_states
[hide private]
[frames] | no frames]

Module in_states

source code

A mapping of state misspellings/abbreviations to normalized abbreviations, and an alphabetical list of states for use as `choices` in a formfield.

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

Variables [hide private]
  STATE_CHOICES = ('KA', 'Karnataka', 'AP', 'Andhra Pradesh', 'K...
  STATES_NORMALIZED = {'andhrapradesh': 'AP', 'andra pradesh': '...
Variables Details [hide private]

STATE_CHOICES

Value:
('KA',
 'Karnataka',
 'AP',
 'Andhra Pradesh',
 'KL',
 'Kerala',
 'TN',
 'Tamil Nadu',
...

STATES_NORMALIZED

Value:
{'andhrapradesh': 'AP',
 'andra pradesh': 'AP',
 'andrapradesh': 'AP',
 'ap': 'AP',
 'ar': 'AR',
 'bengal': 'WB',
 'br': 'BR',
 'dd': 'DD',
...