PageRenderTime 21ms CodeModel.GetById 1ms app.highlight 16ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/localflavor/sk/sk_districts.py

Relevant Search: With Applications for Solr and Elasticsearch

For more in depth reading about search, ranking and generally everything you could ever want to know about how lucene, elasticsearch or solr work under the hood I highly suggest this book. Easily one of the most interesting technical books I have read in a long time. If you are tasked with solving search relevance problems even if not in Solr or Elasticsearch it should be your first reference. Amazon Affiliate Link
https://code.google.com/p/mango-py/
Python | 87 lines | 82 code | 2 blank | 3 comment | 0 complexity | 110600d032ed736d13c63caf296d9480 MD5 | raw file
 1"""
 2Slovak districts according to http://sk.wikipedia.org/wiki/Administrat%C3%ADvne_%C4%8Dlenenie_Slovenska
 3"""
 4
 5from django.utils.translation import ugettext_lazy as _
 6
 7DISTRICT_CHOICES = (
 8    ('BB', _('Banska Bystrica')),
 9    ('BS', _('Banska Stiavnica')),
10    ('BJ', _('Bardejov')),
11    ('BN', _('Banovce nad Bebravou')),
12    ('BR', _('Brezno')),
13    ('BA1', _('Bratislava I')),
14    ('BA2', _('Bratislava II')),
15    ('BA3', _('Bratislava III')),
16    ('BA4', _('Bratislava IV')),
17    ('BA5', _('Bratislava V')),
18    ('BY', _('Bytca')),
19    ('CA', _('Cadca')),
20    ('DT', _('Detva')),
21    ('DK', _('Dolny Kubin')),
22    ('DS', _('Dunajska Streda')),
23    ('GA', _('Galanta')),
24    ('GL', _('Gelnica')),
25    ('HC', _('Hlohovec')),
26    ('HE', _('Humenne')),
27    ('IL', _('Ilava')),
28    ('KK', _('Kezmarok')),
29    ('KN', _('Komarno')),
30    ('KE1', _('Kosice I')),
31    ('KE2', _('Kosice II')),
32    ('KE3', _('Kosice III')),
33    ('KE4', _('Kosice IV')),
34    ('KEO', _('Kosice - okolie')),
35    ('KA', _('Krupina')),
36    ('KM', _('Kysucke Nove Mesto')),
37    ('LV', _('Levice')),
38    ('LE', _('Levoca')),
39    ('LM', _('Liptovsky Mikulas')),
40    ('LC', _('Lucenec')),
41    ('MA', _('Malacky')),
42    ('MT', _('Martin')),
43    ('ML', _('Medzilaborce')),
44    ('MI', _('Michalovce')),
45    ('MY', _('Myjava')),
46    ('NO', _('Namestovo')),
47    ('NR', _('Nitra')),
48    ('NM', _('Nove Mesto nad Vahom')),
49    ('NZ', _('Nove Zamky')),
50    ('PE', _('Partizanske')),
51    ('PK', _('Pezinok')),
52    ('PN', _('Piestany')),
53    ('PT', _('Poltar')),
54    ('PP', _('Poprad')),
55    ('PB', _('Povazska Bystrica')),
56    ('PO', _('Presov')),
57    ('PD', _('Prievidza')),
58    ('PU', _('Puchov')),
59    ('RA', _('Revuca')),
60    ('RS', _('Rimavska Sobota')),
61    ('RV', _('Roznava')),
62    ('RK', _('Ruzomberok')),
63    ('SB', _('Sabinov')),
64    ('SC', _('Senec')),
65    ('SE', _('Senica')),
66    ('SI', _('Skalica')),
67    ('SV', _('Snina')),
68    ('SO', _('Sobrance')),
69    ('SN', _('Spisska Nova Ves')),
70    ('SL', _('Stara Lubovna')),
71    ('SP', _('Stropkov')),
72    ('SK', _('Svidnik')),
73    ('SA', _('Sala')),
74    ('TO', _('Topolcany')),
75    ('TV', _('Trebisov')),
76    ('TN', _('Trencin')),
77    ('TT', _('Trnava')),
78    ('TR', _('Turcianske Teplice')),
79    ('TS', _('Tvrdosin')),
80    ('VK', _('Velky Krtis')),
81    ('VT', _('Vranov nad Toplou')),
82    ('ZM', _('Zlate Moravce')),
83    ('ZV', _('Zvolen')),
84    ('ZC', _('Zarnovica')),
85    ('ZH', _('Ziar nad Hronom')),
86    ('ZA', _('Zilina')),
87)