Latvia (lv)

New in version 1.1.

Forms

class localflavor.lv.forms.LVMunicipalitySelect(attrs=None)[source]

A select field of Latvian municipalities.

class localflavor.lv.forms.LVPersonalCodeField(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 Latvian personal code.

static lv_checksum(value)[source]

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

class localflavor.lv.forms.LVPostalCodeField(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 and normalizes Latvian postal codes.

Latvian postal codes in following forms accepted:
  • XXXX
  • LV-XXXX

Data

localflavor.lv.lv_choices.MUNICIPALITY_CHOICES = ((u'DGV', <django.utils.functional.__proxy__ object at 0x7f953f70a7d0>), (u'JEL', <django.utils.functional.__proxy__ object at 0x7f953f70a650>), (u'JKB', <django.utils.functional.__proxy__ object at 0x7f953f70add0>), (u'JUR', <django.utils.functional.__proxy__ object at 0x7f953f70ae50>), (u'LPX', <django.utils.functional.__proxy__ object at 0x7f953f70a590>), (u'REZ', <django.utils.functional.__proxy__ object at 0x7f953f70a0d0>), (u'RIX', <django.utils.functional.__proxy__ object at 0x7f953f70a050>), (u'VMR', <django.utils.functional.__proxy__ object at 0x7f953f70abd0>), (u'VEN', <django.utils.functional.__proxy__ object at 0x7f953f70a610>), (u'001', <django.utils.functional.__proxy__ object at 0x7f953f70aa10>), (u'002', <django.utils.functional.__proxy__ object at 0x7f953f70a450>), (u'003', <django.utils.functional.__proxy__ object at 0x7f953f70a890>), (u'004', <django.utils.functional.__proxy__ object at 0x7f953f70ab90>), (u'005', <django.utils.functional.__proxy__ object at 0x7f953f70a490>), (u'006', <django.utils.functional.__proxy__ object at 0x7f953f70a150>), (u'007', <django.utils.functional.__proxy__ object at 0x7f953f70a510>), (u'008', <django.utils.functional.__proxy__ object at 0x7f953f70a950>), (u'009', <django.utils.functional.__proxy__ object at 0x7f953f70a390>), (u'010', <django.utils.functional.__proxy__ object at 0x7f953f70aa90>), (u'011', <django.utils.functional.__proxy__ object at 0x7f953f70a190>), (u'012', <django.utils.functional.__proxy__ object at 0x7f953f70ac50>), (u'013', <django.utils.functional.__proxy__ object at 0x7f953fbc3e50>), (u'014', <django.utils.functional.__proxy__ object at 0x7f953fbc3790>), (u'015', <django.utils.functional.__proxy__ object at 0x7f953fbc34d0>), (u'016', <django.utils.functional.__proxy__ object at 0x7f953fbc3150>), (u'017', <django.utils.functional.__proxy__ object at 0x7f953fbc3290>), (u'018', <django.utils.functional.__proxy__ object at 0x7f953fbc3a90>), (u'019', <django.utils.functional.__proxy__ object at 0x7f953fbc3690>), (u'020', <django.utils.functional.__proxy__ object at 0x7f953fbc3050>), (u'021', <django.utils.functional.__proxy__ object at 0x7f953fbc3490>), (u'022', <django.utils.functional.__proxy__ object at 0x7f953fbc3810>), (u'023', <django.utils.functional.__proxy__ object at 0x7f953fbc3190>), (u'024', <django.utils.functional.__proxy__ object at 0x7f953fbc3110>), (u'025', <django.utils.functional.__proxy__ object at 0x7f953fbc36d0>), (u'026', <django.utils.functional.__proxy__ object at 0x7f953fbc3bd0>), (u'027', <django.utils.functional.__proxy__ object at 0x7f953fbc3850>), (u'028', <django.utils.functional.__proxy__ object at 0x7f953fbc3cd0>), (u'029', <django.utils.functional.__proxy__ object at 0x7f953f4e4b50>), (u'030', <django.utils.functional.__proxy__ object at 0x7f953f4e4850>), (u'031', <django.utils.functional.__proxy__ object at 0x7f953f4e4950>), (u'032', <django.utils.functional.__proxy__ object at 0x7f953f4e4f50>), (u'033', <django.utils.functional.__proxy__ object at 0x7f953f4e4e90>), (u'034', <django.utils.functional.__proxy__ object at 0x7f953f4e48d0>), (u'035', <django.utils.functional.__proxy__ object at 0x7f953f4e4c90>), (u'036', <django.utils.functional.__proxy__ object at 0x7f953f4e4cd0>), (u'037', <django.utils.functional.__proxy__ object at 0x7f953f4e4bd0>), (u'038', <django.utils.functional.__proxy__ object at 0x7f953f4e4a10>), (u'039', <django.utils.functional.__proxy__ object at 0x7f953f4e4c50>), (u'040', <django.utils.functional.__proxy__ object at 0x7f953f6d4d50>), (u'041', <django.utils.functional.__proxy__ object at 0x7f953f6d41d0>), (u'042', <django.utils.functional.__proxy__ object at 0x7f953f6d4190>), (u'043', <django.utils.functional.__proxy__ object at 0x7f953f6d4d90>), (u'044', <django.utils.functional.__proxy__ object at 0x7f953f6d4d10>), (u'045', <django.utils.functional.__proxy__ object at 0x7f953f6d4050>), (u'046', <django.utils.functional.__proxy__ object at 0x7f953f6d4c50>), (u'047', <django.utils.functional.__proxy__ object at 0x7f953f6d4ed0>), (u'048', <django.utils.functional.__proxy__ object at 0x7f953f6d4f10>), (u'049', <django.utils.functional.__proxy__ object at 0x7f953f6d4c90>), (u'050', <django.utils.functional.__proxy__ object at 0x7f953f6d4950>), (u'051', <django.utils.functional.__proxy__ object at 0x7f953f6d4990>), (u'052', <django.utils.functional.__proxy__ object at 0x7f953f6d4350>), (u'053', <django.utils.functional.__proxy__ object at 0x7f953f6eae90>), (u'054', <django.utils.functional.__proxy__ object at 0x7f953f6ea210>), (u'055', <django.utils.functional.__proxy__ object at 0x7f953f6ea110>), (u'056', <django.utils.functional.__proxy__ object at 0x7f953f6ea690>), (u'057', <django.utils.functional.__proxy__ object at 0x7f953f6eae50>), (u'058', <django.utils.functional.__proxy__ object at 0x7f953f6eab50>), (u'059', <django.utils.functional.__proxy__ object at 0x7f953f6ea790>), (u'060', <django.utils.functional.__proxy__ object at 0x7f953f6ea190>), (u'061', <django.utils.functional.__proxy__ object at 0x7f953f6eaed0>), (u'062', <django.utils.functional.__proxy__ object at 0x7f953f6ea8d0>), (u'063', <django.utils.functional.__proxy__ object at 0x7f953f6eaa10>), (u'064', <django.utils.functional.__proxy__ object at 0x7f953f6ea2d0>), (u'065', <django.utils.functional.__proxy__ object at 0x7f953f6ea710>), (u'066', <django.utils.functional.__proxy__ object at 0x7f953f6ea650>), (u'067', <django.utils.functional.__proxy__ object at 0x7f953f6ea610>), (u'068', <django.utils.functional.__proxy__ object at 0x7f953f6ea390>), (u'069', <django.utils.functional.__proxy__ object at 0x7f953f6ea950>), (u'070', <django.utils.functional.__proxy__ object at 0x7f953f6ea150>), (u'071', <django.utils.functional.__proxy__ object at 0x7f953f6ea1d0>), (u'072', <django.utils.functional.__proxy__ object at 0x7f953f6ea050>), (u'073', <django.utils.functional.__proxy__ object at 0x7f953f6eafd0>), (u'074', <django.utils.functional.__proxy__ object at 0x7f953f6ea750>), (u'075', <django.utils.functional.__proxy__ object at 0x7f953f6eab90>), (u'076', <django.utils.functional.__proxy__ object at 0x7f953f6ead10>), (u'077', <django.utils.functional.__proxy__ object at 0x7f953f6ea090>), (u'078', <django.utils.functional.__proxy__ object at 0x7f953f6ead90>), (u'079', <django.utils.functional.__proxy__ object at 0x7f9540015710>), (u'080', <django.utils.functional.__proxy__ object at 0x7f9540015790>), (u'081', <django.utils.functional.__proxy__ object at 0x7f9540015ed0>), (u'082', <django.utils.functional.__proxy__ object at 0x7f9540015d90>), (u'083', <django.utils.functional.__proxy__ object at 0x7f9540015210>), (u'084', <django.utils.functional.__proxy__ object at 0x7f9540015550>), (u'085', <django.utils.functional.__proxy__ object at 0x7f9540015bd0>), (u'086', <django.utils.functional.__proxy__ object at 0x7f9540015690>), (u'087', <django.utils.functional.__proxy__ object at 0x7f9540015850>), (u'088', <django.utils.functional.__proxy__ object at 0x7f9540015890>), (u'089', <django.utils.functional.__proxy__ object at 0x7f95400151d0>), (u'090', <django.utils.functional.__proxy__ object at 0x7f9540015150>), (u'091', <django.utils.functional.__proxy__ object at 0x7f9540015510>), (u'092', <django.utils.functional.__proxy__ object at 0x7f95400152d0>), (u'093', <django.utils.functional.__proxy__ object at 0x7f9540015c10>), (u'094', <django.utils.functional.__proxy__ object at 0x7f9540015e50>), (u'095', <django.utils.functional.__proxy__ object at 0x7f9540015b10>), (u'096', <django.utils.functional.__proxy__ object at 0x7f9540015810>), (u'097', <django.utils.functional.__proxy__ object at 0x7f9540015610>), (u'098', <django.utils.functional.__proxy__ object at 0x7f9540015c50>), (u'099', <django.utils.functional.__proxy__ object at 0x7f9540015a90>), (u'100', <django.utils.functional.__proxy__ object at 0x7f95400154d0>), (u'101', <django.utils.functional.__proxy__ object at 0x7f9540015b50>), (u'102', <django.utils.functional.__proxy__ object at 0x7f9540015190>), (u'103', <django.utils.functional.__proxy__ object at 0x7f9540015050>), (u'104', <django.utils.functional.__proxy__ object at 0x7f95400150d0>), (u'105', <django.utils.functional.__proxy__ object at 0x7f9540015750>), (u'106', <django.utils.functional.__proxy__ object at 0x7f9540015910>), (u'107', <django.utils.functional.__proxy__ object at 0x7f9540015350>), (u'108', <django.utils.functional.__proxy__ object at 0x7f9540015390>), (u'109', <django.utils.functional.__proxy__ object at 0x7f95400153d0>), (u'110', <django.utils.functional.__proxy__ object at 0x7f953f668110>))

A list of Latvian municipalities and republican cities. Identifiers based on ISO 3166-2:LV. https://en.wikipedia.org/wiki/ISO_3166-2:LV