Estonia (ee)

New in version 1.1.

Forms

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)[source]

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

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

static ee_checksum(value)[source]

Takes a string of 10 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', <django.utils.functional.__proxy__ object at 0x7f953ebfcb90>), (u'39', <django.utils.functional.__proxy__ object at 0x7f953ebfcd50>), (u'44', <django.utils.functional.__proxy__ object at 0x7f953ebfcf10>), (u'49', <django.utils.functional.__proxy__ object at 0x7f953ebfcf90>), (u'51', <django.utils.functional.__proxy__ object at 0x7f953ebfcfd0>), (u'57', <django.utils.functional.__proxy__ object at 0x7f953ebfcc90>), (u'59', <django.utils.functional.__proxy__ object at 0x7f953ebfcdd0>), (u'65', <django.utils.functional.__proxy__ object at 0x7f953ebfce50>), (u'67', <django.utils.functional.__proxy__ object at 0x7f953ebfca90>), (u'70', <django.utils.functional.__proxy__ object at 0x7f953ebfcbd0>), (u'74', <django.utils.functional.__proxy__ object at 0x7f953ebfcc10>), (u'78', <django.utils.functional.__proxy__ object at 0x7f953ebfc510>), (u'82', <django.utils.functional.__proxy__ object at 0x7f953ebfc190>), (u'84', <django.utils.functional.__proxy__ object at 0x7f953ebfc210>), (u'86', <django.utils.functional.__proxy__ object at 0x7f953ebfc3d0>))

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