Lithuania (lt
)¶
Forms¶
-
class
localflavor.lt.forms.
LTCountySelect
(attrs=None)[source]¶ A select field with the Lithuanian counties as choices
-
class
localflavor.lt.forms.
LTIDCodeField
(*args, **kwargs)[source]¶ A form field that validates as Lithuanian ID Code.
- Checks:
- Made of exactly 11 decimal numbers.
- Checksum is correct.
- ID contains valid date.
-
class
localflavor.lt.forms.
LTMunicipalitySelect
(attrs=None)[source]¶ A select field with the Lithuanian municipalities as choices
-
class
localflavor.lt.forms.
LTPhoneField
(mobile=True, landline=True, emergency=False, landline_local=False, service=False, **kwargs)[source]¶ Form field that validates as Lithuanian phone number
You can accept any permutation of following phone numbers:
- Emergency (01, 02, 03, 04, 112)
- Mobile (370 600 00 000)
- Landline
- Service numbers
If you accept landline numbers, you can opt in to accepting local landline numbers too. Local landline numbers are numbers without area code.
This field does not accept multiple numbers (as separated by /).
The field tries its best to convert the number into one you can call to internationally. Currently emergency and most of landline_local numbers are not converted.
New in version 1.1.
-
class
localflavor.lt.forms.
LTPostalCodeField
(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 Lithanuan postal codes.
- Lithuanian postal codes in following forms accepted:
- XXXXX
- LT-XXXXX
Data¶
-
localflavor.lt.lt_choices.
COUNTY_CHOICES
= ((u'alytus', <django.utils.functional.__proxy__ object at 0x7f953fba0d90>), (u'kaunas', <django.utils.functional.__proxy__ object at 0x7f953ee07350>), (u'klaipeda', <django.utils.functional.__proxy__ object at 0x7f953ee07490>), (u'mariampole', <django.utils.functional.__proxy__ object at 0x7f953ee07950>), (u'panevezys', <django.utils.functional.__proxy__ object at 0x7f953ee07ad0>), (u'siauliai', <django.utils.functional.__proxy__ object at 0x7f953ee07e50>), (u'taurage', <django.utils.functional.__proxy__ object at 0x7f953ee077d0>), (u'telsiai', <django.utils.functional.__proxy__ object at 0x7f953ee07250>), (u'utena', <django.utils.functional.__proxy__ object at 0x7f953ee07850>), (u'vilnius', <django.utils.functional.__proxy__ object at 0x7f953ee07590>))¶ Alphabetically sorted list of Lithuanian counties.
-
localflavor.lt.lt_choices.
MUNICIPALITY_CHOICES
= ((u'akmene', <django.utils.functional.__proxy__ object at 0x7f953ee07c90>), (u'alytus_c', <django.utils.functional.__proxy__ object at 0x7f953ee07790>), (u'alytus', <django.utils.functional.__proxy__ object at 0x7f953ee07510>), (u'anyksciai', <django.utils.functional.__proxy__ object at 0x7f953ee075d0>), (u'birstonas', <django.utils.functional.__proxy__ object at 0x7f953ee07410>), (u'birzai', <django.utils.functional.__proxy__ object at 0x7f953ee07f10>), (u'druskininkai', <django.utils.functional.__proxy__ object at 0x7f953ee07310>), (u'elektrenai', <django.utils.functional.__proxy__ object at 0x7f953ee07a10>), (u'ignalina', <django.utils.functional.__proxy__ object at 0x7f953ee07b50>), (u'jonava', <django.utils.functional.__proxy__ object at 0x7f953ee07a90>), (u'joniskis', <django.utils.functional.__proxy__ object at 0x7f953ee07210>), (u'jurbarkas', <django.utils.functional.__proxy__ object at 0x7f953ee073d0>), (u'kaisiadorys', <django.utils.functional.__proxy__ object at 0x7f953ee07f50>), (u'kalvarija', <django.utils.functional.__proxy__ object at 0x7f953ee07450>), (u'kaunas_c', <django.utils.functional.__proxy__ object at 0x7f953f0020d0>), (u'kaunas', <django.utils.functional.__proxy__ object at 0x7f953f002810>), (u'kazluruda', <django.utils.functional.__proxy__ object at 0x7f953f002650>), (u'kedainiai', <django.utils.functional.__proxy__ object at 0x7f953f002510>), (u'kelme', <django.utils.functional.__proxy__ object at 0x7f953f002490>), (u'klaipeda_c', <django.utils.functional.__proxy__ object at 0x7f953f0022d0>), (u'klaipeda', <django.utils.functional.__proxy__ object at 0x7f953f002a10>), (u'kretinga', <django.utils.functional.__proxy__ object at 0x7f953f002850>), (u'kupiskis', <django.utils.functional.__proxy__ object at 0x7f953f002b90>), (u'lazdijai', <django.utils.functional.__proxy__ object at 0x7f953f002f90>), (u'marijampole', <django.utils.functional.__proxy__ object at 0x7f953f002990>), (u'mazeikiai', <django.utils.functional.__proxy__ object at 0x7f953f002c90>), (u'moletai', <django.utils.functional.__proxy__ object at 0x7f953f002290>), (u'neringa', <django.utils.functional.__proxy__ object at 0x7f953f002710>), (u'pagegiai', <django.utils.functional.__proxy__ object at 0x7f953f002c10>), (u'pakruojis', <django.utils.functional.__proxy__ object at 0x7f953f0027d0>), (u'palanga', <django.utils.functional.__proxy__ object at 0x7f953f0023d0>), (u'panevezys_c', <django.utils.functional.__proxy__ object at 0x7f953f002fd0>), (u'panevezys', <django.utils.functional.__proxy__ object at 0x7f953f002f50>), (u'pasvalys', <django.utils.functional.__proxy__ object at 0x7f953f002cd0>), (u'plunge', <django.utils.functional.__proxy__ object at 0x7f953f002f10>), (u'prienai', <django.utils.functional.__proxy__ object at 0x7f953f002910>), (u'radviliskis', <django.utils.functional.__proxy__ object at 0x7f953f002690>), (u'raseiniai', <django.utils.functional.__proxy__ object at 0x7f953f002410>), (u'rietavas', <django.utils.functional.__proxy__ object at 0x7f953f002890>), (u'rokiskis', <django.utils.functional.__proxy__ object at 0x7f953f002e10>), (u'skuodas', <django.utils.functional.__proxy__ object at 0x7f953f002b50>), (u'sakiai', <django.utils.functional.__proxy__ object at 0x7f953f002ad0>), (u'salcininkai', <django.utils.functional.__proxy__ object at 0x7f953f5c7810>), (u'siauliai_c', <django.utils.functional.__proxy__ object at 0x7f953f5c7490>), (u'siauliai', <django.utils.functional.__proxy__ object at 0x7f953fae7250>), (u'silale', <django.utils.functional.__proxy__ object at 0x7f953fae7510>), (u'silute', <django.utils.functional.__proxy__ object at 0x7f953fae7650>), (u'sirvintos', <django.utils.functional.__proxy__ object at 0x7f953fae7c90>), (u'svencionys', <django.utils.functional.__proxy__ object at 0x7f953fae7710>), (u'taurage', <django.utils.functional.__proxy__ object at 0x7f953fae7d50>), (u'telsiai', <django.utils.functional.__proxy__ object at 0x7f953fae74d0>), (u'trakai', <django.utils.functional.__proxy__ object at 0x7f953fae7dd0>), (u'ukmerge', <django.utils.functional.__proxy__ object at 0x7f953fae7550>), (u'utena', <django.utils.functional.__proxy__ object at 0x7f953fae7190>), (u'varena', <django.utils.functional.__proxy__ object at 0x7f953fae7d10>), (u'vilkaviskis', <django.utils.functional.__proxy__ object at 0x7f953fae7690>), (u'vilnius_c', <django.utils.functional.__proxy__ object at 0x7f953fae7f50>), (u'vilnius', <django.utils.functional.__proxy__ object at 0x7f953fae7150>), (u'visaginas', <django.utils.functional.__proxy__ object at 0x7f953fae7fd0>), (u'zarasai', <django.utils.functional.__proxy__ object at 0x7f953fae7090>))¶ Alphabetically sorted lists of Lithuanian municipalities.