Slovakia (sk)

Forms

Slovak-specific form helpers.

class localflavor.sk.forms.SKDistrictSelect(attrs=None)[source]

A select widget with list of Slovak districts as choices.

class localflavor.sk.forms.SKPostalCodeField(*args, **kwargs)[source]

A form field that validates its input as Slovak postal code.

Valid form is XXXXX or XXX XX, where X represents integer.

clean(value)[source]

Validates the input and returns a string that contains only numbers.

Returns an empty string for empty values.

class localflavor.sk.forms.SKRegionSelect(attrs=None)[source]

A select widget widget with list of Slovak regions as choices.

Data

localflavor.sk.sk_districts.DISTRICT_CHOICES = (('BB', 'Banska Bystrica'), ('BS', 'Banska Stiavnica'), ('BJ', 'Bardejov'), ('BN', 'Banovce nad Bebravou'), ('BR', 'Brezno'), ('BA1', 'Bratislava I'), ('BA2', 'Bratislava II'), ('BA3', 'Bratislava III'), ('BA4', 'Bratislava IV'), ('BA5', 'Bratislava V'), ('BY', 'Bytca'), ('CA', 'Cadca'), ('DT', 'Detva'), ('DK', 'Dolny Kubin'), ('DS', 'Dunajska Streda'), ('GA', 'Galanta'), ('GL', 'Gelnica'), ('HC', 'Hlohovec'), ('HE', 'Humenne'), ('IL', 'Ilava'), ('KK', 'Kezmarok'), ('KN', 'Komarno'), ('KE1', 'Kosice I'), ('KE2', 'Kosice II'), ('KE3', 'Kosice III'), ('KE4', 'Kosice IV'), ('KEO', 'Kosice - okolie'), ('KA', 'Krupina'), ('KM', 'Kysucke Nove Mesto'), ('LV', 'Levice'), ('LE', 'Levoca'), ('LM', 'Liptovsky Mikulas'), ('LC', 'Lucenec'), ('MA', 'Malacky'), ('MT', 'Martin'), ('ML', 'Medzilaborce'), ('MI', 'Michalovce'), ('MY', 'Myjava'), ('NO', 'Namestovo'), ('NR', 'Nitra'), ('NM', 'Nove Mesto nad Vahom'), ('NZ', 'Nove Zamky'), ('PE', 'Partizanske'), ('PK', 'Pezinok'), ('PN', 'Piestany'), ('PT', 'Poltar'), ('PP', 'Poprad'), ('PB', 'Povazska Bystrica'), ('PO', 'Presov'), ('PD', 'Prievidza'), ('PU', 'Puchov'), ('RA', 'Revuca'), ('RS', 'Rimavska Sobota'), ('RV', 'Roznava'), ('RK', 'Ruzomberok'), ('SB', 'Sabinov'), ('SC', 'Senec'), ('SE', 'Senica'), ('SI', 'Skalica'), ('SV', 'Snina'), ('SO', 'Sobrance'), ('SN', 'Spisska Nova Ves'), ('SL', 'Stara Lubovna'), ('SP', 'Stropkov'), ('SK', 'Svidnik'), ('SA', 'Sala'), ('TO', 'Topolcany'), ('TV', 'Trebisov'), ('TN', 'Trencin'), ('TT', 'Trnava'), ('TR', 'Turcianske Teplice'), ('TS', 'Tvrdosin'), ('VK', 'Velky Krtis'), ('VT', 'Vranov nad Toplou'), ('ZM', 'Zlate Moravce'), ('ZV', 'Zvolen'), ('ZC', 'Zarnovica'), ('ZH', 'Ziar nad Hronom'), ('ZA', 'Zilina'))

http://sk.wikipedia.org/wiki/Administrat%C3%ADvne_%C4%8Dlenenie_Slovenska

localflavor.sk.sk_regions.REGION_CHOICES = (('BB', 'Banska Bystrica region'), ('BA', 'Bratislava region'), ('KE', 'Kosice region'), ('NR', 'Nitra region'), ('PO', 'Presov region'), ('TN', 'Trencin region'), ('TT', 'Trnava region'), ('ZA', 'Zilina region'))

http://sk.wikipedia.org/wiki/Administrat%C3%ADvne_%C4%8Dlenenie_Slovenska