Estonia (ee)

New in version 1.1.

Forms

class localflavor.ee.forms.EEBusinessRegistryCode(required=True, widget=None, label=None, initial=None, help_text=u”, error_messages=None, show_hidden_initial=False, validators=(), localize=False, disabled=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=u”, error_messages=None, show_hidden_initial=False, validators=(), localize=False, disabled=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 = ((u‘37’, u’Harju County’), (u‘39’, u’Hiiu County’), (u‘44’, u’Ida-Viru County’), (u‘49’, u’J\xf5geva County’), (u‘51’, u’J\xe4rva County’), (u‘57’, u’L\xe4\xe4ne County’), (u‘59’, u’L\xe4\xe4ne-Viru County’), (u‘65’, u’P\xf5lva County’), (u‘67’, u’P\xe4rnu County’), (u‘70’, u’Rapla County’), (u‘74’, u’Saare County’), (u‘78’, u’Tartu County’), (u‘82’, u’Valga County’), (u‘84’, u’Viljandi County’), (u‘86’, u’V\xf5ru 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