Czech Republic (cz)

Forms

Czech-specific form helpers

class localflavor.cz.forms.CZBirthNumberField(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False)[source]

Czech birth number form field.

class localflavor.cz.forms.CZICNumberField(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False)[source]

Czech IC number form field.

class localflavor.cz.forms.CZPostalCodeField(max_length=None, min_length=None, *args, **kwargs)[source]

A form field that validates its input as Czech 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.cz.forms.CZRegionSelect(attrs=None)[source]

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

Data

localflavor.cz.cz_regions.REGION_CHOICES = (('PR', <django.utils.functional.__proxy__ object at 0x7f953f69fdd0>), ('CE', <django.utils.functional.__proxy__ object at 0x7f953f69fe10>), ('SO', <django.utils.functional.__proxy__ object at 0x7f953f69fe50>), ('PI', <django.utils.functional.__proxy__ object at 0x7f953f69fe90>), ('CA', <django.utils.functional.__proxy__ object at 0x7f953f69fed0>), ('US', <django.utils.functional.__proxy__ object at 0x7f953f69ff10>), ('LB', <django.utils.functional.__proxy__ object at 0x7f953f69ff90>), ('HK', <django.utils.functional.__proxy__ object at 0x7f953f63b050>), ('PA', <django.utils.functional.__proxy__ object at 0x7f953f63b0d0>), ('VY', <django.utils.functional.__proxy__ object at 0x7f953f63b150>), ('SM', <django.utils.functional.__proxy__ object at 0x7f953f63b1d0>), ('OL', <django.utils.functional.__proxy__ object at 0x7f953f63b250>), ('ZL', <django.utils.functional.__proxy__ object at 0x7f953f63b2d0>), ('MS', <django.utils.functional.__proxy__ object at 0x7f953f63b350>))

Czech regions, translations get from http://www.crwflags.com/fotw/Flags/cz-re.html