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(max_length=None, min_length=None, *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', <django.utils.functional.__proxy__ object at 0x7f953dce2610>), ('BS', <django.utils.functional.__proxy__ object at 0x7f953dce2650>), ('BJ', <django.utils.functional.__proxy__ object at 0x7f953dce2690>), ('BN', <django.utils.functional.__proxy__ object at 0x7f953dce26d0>), ('BR', <django.utils.functional.__proxy__ object at 0x7f953dce2710>), ('BA1', <django.utils.functional.__proxy__ object at 0x7f953dce2790>), ('BA2', <django.utils.functional.__proxy__ object at 0x7f953dce2810>), ('BA3', <django.utils.functional.__proxy__ object at 0x7f953dce2890>), ('BA4', <django.utils.functional.__proxy__ object at 0x7f953dce2910>), ('BA5', <django.utils.functional.__proxy__ object at 0x7f953dce2990>), ('BY', <django.utils.functional.__proxy__ object at 0x7f953dce2a10>), ('CA', <django.utils.functional.__proxy__ object at 0x7f953dce2a90>), ('DT', <django.utils.functional.__proxy__ object at 0x7f953dce2b10>), ('DK', <django.utils.functional.__proxy__ object at 0x7f953dce2b90>), ('DS', <django.utils.functional.__proxy__ object at 0x7f953dce2c10>), ('GA', <django.utils.functional.__proxy__ object at 0x7f953dce2c90>), ('GL', <django.utils.functional.__proxy__ object at 0x7f953dce2d10>), ('HC', <django.utils.functional.__proxy__ object at 0x7f953dce2d90>), ('HE', <django.utils.functional.__proxy__ object at 0x7f953dce2e10>), ('IL', <django.utils.functional.__proxy__ object at 0x7f953dce2e90>), ('KK', <django.utils.functional.__proxy__ object at 0x7f953dce2f10>), ('KN', <django.utils.functional.__proxy__ object at 0x7f953dce2f90>), ('KE1', <django.utils.functional.__proxy__ object at 0x7f953dcfd050>), ('KE2', <django.utils.functional.__proxy__ object at 0x7f953dcfd0d0>), ('KE3', <django.utils.functional.__proxy__ object at 0x7f953dcfd150>), ('KE4', <django.utils.functional.__proxy__ object at 0x7f953dcfd1d0>), ('KEO', <django.utils.functional.__proxy__ object at 0x7f953dcfd250>), ('KA', <django.utils.functional.__proxy__ object at 0x7f953dcfd2d0>), ('KM', <django.utils.functional.__proxy__ object at 0x7f953dcfd350>), ('LV', <django.utils.functional.__proxy__ object at 0x7f953dcfd3d0>), ('LE', <django.utils.functional.__proxy__ object at 0x7f953dcfd450>), ('LM', <django.utils.functional.__proxy__ object at 0x7f953dcfd4d0>), ('LC', <django.utils.functional.__proxy__ object at 0x7f953dcfd550>), ('MA', <django.utils.functional.__proxy__ object at 0x7f953dcfd5d0>), ('MT', <django.utils.functional.__proxy__ object at 0x7f953dcfd650>), ('ML', <django.utils.functional.__proxy__ object at 0x7f953dcfd6d0>), ('MI', <django.utils.functional.__proxy__ object at 0x7f953dcfd750>), ('MY', <django.utils.functional.__proxy__ object at 0x7f953dcfd7d0>), ('NO', <django.utils.functional.__proxy__ object at 0x7f953dcfd850>), ('NR', <django.utils.functional.__proxy__ object at 0x7f953dcfd8d0>), ('NM', <django.utils.functional.__proxy__ object at 0x7f953dcfd950>), ('NZ', <django.utils.functional.__proxy__ object at 0x7f953dcfd9d0>), ('PE', <django.utils.functional.__proxy__ object at 0x7f953dcfda50>), ('PK', <django.utils.functional.__proxy__ object at 0x7f953dcfdad0>), ('PN', <django.utils.functional.__proxy__ object at 0x7f953dcfdb50>), ('PT', <django.utils.functional.__proxy__ object at 0x7f953dcfdbd0>), ('PP', <django.utils.functional.__proxy__ object at 0x7f953dcfdc50>), ('PB', <django.utils.functional.__proxy__ object at 0x7f953dcfdcd0>), ('PO', <django.utils.functional.__proxy__ object at 0x7f953dcfdd50>), ('PD', <django.utils.functional.__proxy__ object at 0x7f953dcfddd0>), ('PU', <django.utils.functional.__proxy__ object at 0x7f953dcfde50>), ('RA', <django.utils.functional.__proxy__ object at 0x7f953dcfded0>), ('RS', <django.utils.functional.__proxy__ object at 0x7f953dcfdf50>), ('RV', <django.utils.functional.__proxy__ object at 0x7f953dcfdfd0>), ('RK', <django.utils.functional.__proxy__ object at 0x7f953dd02090>), ('SB', <django.utils.functional.__proxy__ object at 0x7f953dd02110>), ('SC', <django.utils.functional.__proxy__ object at 0x7f953dd02190>), ('SE', <django.utils.functional.__proxy__ object at 0x7f953dd02210>), ('SI', <django.utils.functional.__proxy__ object at 0x7f953dd02290>), ('SV', <django.utils.functional.__proxy__ object at 0x7f953dd02310>), ('SO', <django.utils.functional.__proxy__ object at 0x7f953dd02390>), ('SN', <django.utils.functional.__proxy__ object at 0x7f953dd02410>), ('SL', <django.utils.functional.__proxy__ object at 0x7f953dd02490>), ('SP', <django.utils.functional.__proxy__ object at 0x7f953dd02510>), ('SK', <django.utils.functional.__proxy__ object at 0x7f953dd02590>), ('SA', <django.utils.functional.__proxy__ object at 0x7f953dd02610>), ('TO', <django.utils.functional.__proxy__ object at 0x7f953dd02690>), ('TV', <django.utils.functional.__proxy__ object at 0x7f953dd02710>), ('TN', <django.utils.functional.__proxy__ object at 0x7f953dd02790>), ('TT', <django.utils.functional.__proxy__ object at 0x7f953dd02810>), ('TR', <django.utils.functional.__proxy__ object at 0x7f953dd02890>), ('TS', <django.utils.functional.__proxy__ object at 0x7f953dd02910>), ('VK', <django.utils.functional.__proxy__ object at 0x7f953dd02990>), ('VT', <django.utils.functional.__proxy__ object at 0x7f953dd02a10>), ('ZM', <django.utils.functional.__proxy__ object at 0x7f953dd02a90>), ('ZV', <django.utils.functional.__proxy__ object at 0x7f953dd02b10>), ('ZC', <django.utils.functional.__proxy__ object at 0x7f953dd02b90>), ('ZH', <django.utils.functional.__proxy__ object at 0x7f953dd02c10>), ('ZA', <django.utils.functional.__proxy__ object at 0x7f953dd02c90>))

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

localflavor.sk.sk_regions.REGION_CHOICES = (('BB', <django.utils.functional.__proxy__ object at 0x7f953dd02d90>), ('BA', <django.utils.functional.__proxy__ object at 0x7f953dd02e50>), ('KE', <django.utils.functional.__proxy__ object at 0x7f953dd02ed0>), ('NR', <django.utils.functional.__proxy__ object at 0x7f953dd02f50>), ('PO', <django.utils.functional.__proxy__ object at 0x7f953dd02fd0>), ('TN', <django.utils.functional.__proxy__ object at 0x7f953dd06090>), ('TT', <django.utils.functional.__proxy__ object at 0x7f953dd06110>), ('ZA', <django.utils.functional.__proxy__ object at 0x7f953dd06190>))

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