Estonia (ee)

New in version 1.1.

Forms

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

A form field that validates input as an Estonian business registration code.

New in version 1.2.

class localflavor.ee.forms.EECountySelect(attrs=None)[source]

A Select widget that uses a list of Estonian counties as its choices.

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

A form field that validates input as an Estonian personal identification code.

See: https://www.riigiteataja.ee/akt/106032012004

static ee_checksum(value)[source]

Takes a string of digits as input, returns check digit.

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

A form field that validates input as a Estonian zip code. Valid codes consist of five digits; first digit cannot be 0.

Data

localflavor.ee.ee_counties.COUNTY_CHOICES = (('37', 'Harju County'), ('39', 'Hiiu County'), ('44', 'Ida-Viru County'), ('49', 'Jõgeva County'), ('51', 'Järva County'), ('57', 'Lääne County'), ('59', 'Lääne-Viru County'), ('65', 'Põlva County'), ('67', 'Pärnu County'), ('70', 'Rapla County'), ('74', 'Saare County'), ('78', 'Tartu County'), ('82', 'Valga County'), ('84', 'Viljandi County'), ('86', 'Võru County'))

A list of Estonian counties as choices in a formfield. Identifiers based on ISO 3166-2:EE. https://en.wikipedia.org/wiki/ISO_3166-2:EE