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 0x7f1e9dee4310>), (u'kaunas', <django.utils.functional.__proxy__ object at 0x7f1e9dee4110>), (u'klaipeda', <django.utils.functional.__proxy__ object at 0x7f1e9dee4d10>), (u'mariampole', <django.utils.functional.__proxy__ object at 0x7f1e9dee4490>), (u'panevezys', <django.utils.functional.__proxy__ object at 0x7f1e9dee4a10>), (u'siauliai', <django.utils.functional.__proxy__ object at 0x7f1e9dee4510>), (u'taurage', <django.utils.functional.__proxy__ object at 0x7f1e9e0296d0>), (u'telsiai', <django.utils.functional.__proxy__ object at 0x7f1e9e029e10>), (u'utena', <django.utils.functional.__proxy__ object at 0x7f1e9e029bd0>), (u'vilnius', <django.utils.functional.__proxy__ object at 0x7f1e9e029f10>))¶ Alphabetically sorted list of Lithuanian counties.
-
localflavor.lt.lt_choices.MUNICIPALITY_CHOICES= ((u'akmene', <django.utils.functional.__proxy__ object at 0x7f1e9e029190>), (u'alytus_c', <django.utils.functional.__proxy__ object at 0x7f1e9e029290>), (u'alytus', <django.utils.functional.__proxy__ object at 0x7f1e9e029350>), (u'anyksciai', <django.utils.functional.__proxy__ object at 0x7f1e9e029c50>), (u'birstonas', <django.utils.functional.__proxy__ object at 0x7f1e9e029950>), (u'birzai', <django.utils.functional.__proxy__ object at 0x7f1e9e029150>), (u'druskininkai', <django.utils.functional.__proxy__ object at 0x7f1e9e0290d0>), (u'elektrenai', <django.utils.functional.__proxy__ object at 0x7f1e9e029490>), (u'ignalina', <django.utils.functional.__proxy__ object at 0x7f1e9e029450>), (u'jonava', <django.utils.functional.__proxy__ object at 0x7f1e9e029650>), (u'joniskis', <django.utils.functional.__proxy__ object at 0x7f1e9e029690>), (u'jurbarkas', <django.utils.functional.__proxy__ object at 0x7f1e9e029b50>), (u'kaisiadorys', <django.utils.functional.__proxy__ object at 0x7f1e9e029e90>), (u'kalvarija', <django.utils.functional.__proxy__ object at 0x7f1e9e0299d0>), (u'kaunas_c', <django.utils.functional.__proxy__ object at 0x7f1e9e029590>), (u'kaunas', <django.utils.functional.__proxy__ object at 0x7f1e9e029050>), (u'kazluruda', <django.utils.functional.__proxy__ object at 0x7f1e9e029f90>), (u'kedainiai', <django.utils.functional.__proxy__ object at 0x7f1e9e029390>), (u'kelme', <django.utils.functional.__proxy__ object at 0x7f1e9e029a10>), (u'klaipeda_c', <django.utils.functional.__proxy__ object at 0x7f1e9e029ed0>), (u'klaipeda', <django.utils.functional.__proxy__ object at 0x7f1e9e0293d0>), (u'kretinga', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0a10>), (u'kupiskis', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0cd0>), (u'lazdijai', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0c90>), (u'marijampole', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0ad0>), (u'mazeikiai', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0810>), (u'moletai', <django.utils.functional.__proxy__ object at 0x7f1e9d5a08d0>), (u'neringa', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0a90>), (u'pagegiai', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0750>), (u'pakruojis', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0b90>), (u'palanga', <django.utils.functional.__proxy__ object at 0x7f1e9d5a0a50>), (u'panevezys_c', <django.utils.functional.__proxy__ object at 0x7f1e9dd21390>), (u'panevezys', <django.utils.functional.__proxy__ object at 0x7f1e9dd21050>), (u'pasvalys', <django.utils.functional.__proxy__ object at 0x7f1e9dd21c50>), (u'plunge', <django.utils.functional.__proxy__ object at 0x7f1e9dd21490>), (u'prienai', <django.utils.functional.__proxy__ object at 0x7f1e9dd21350>), (u'radviliskis', <django.utils.functional.__proxy__ object at 0x7f1e9dd21790>), (u'raseiniai', <django.utils.functional.__proxy__ object at 0x7f1e9dd21950>), (u'rietavas', <django.utils.functional.__proxy__ object at 0x7f1e9dd21890>), (u'rokiskis', <django.utils.functional.__proxy__ object at 0x7f1e9dd21cd0>), (u'skuodas', <django.utils.functional.__proxy__ object at 0x7f1e9dd21d90>), (u'sakiai', <django.utils.functional.__proxy__ object at 0x7f1e9dd21ad0>), (u'salcininkai', <django.utils.functional.__proxy__ object at 0x7f1e9dd212d0>), (u'siauliai_c', <django.utils.functional.__proxy__ object at 0x7f1e9dd21750>), (u'siauliai', <django.utils.functional.__proxy__ object at 0x7f1e9dd21c90>), (u'silale', <django.utils.functional.__proxy__ object at 0x7f1e9dd21f10>), (u'silute', <django.utils.functional.__proxy__ object at 0x7f1e9dd21e50>), (u'sirvintos', <django.utils.functional.__proxy__ object at 0x7f1e9dd211d0>), (u'svencionys', <django.utils.functional.__proxy__ object at 0x7f1e9dd21dd0>), (u'taurage', <django.utils.functional.__proxy__ object at 0x7f1e9dd21190>), (u'telsiai', <django.utils.functional.__proxy__ object at 0x7f1e9dd21290>), (u'trakai', <django.utils.functional.__proxy__ object at 0x7f1e9dd21bd0>), (u'ukmerge', <django.utils.functional.__proxy__ object at 0x7f1e9dd219d0>), (u'utena', <django.utils.functional.__proxy__ object at 0x7f1e9ce25a90>), (u'varena', <django.utils.functional.__proxy__ object at 0x7f1e9ce25450>), (u'vilkaviskis', <django.utils.functional.__proxy__ object at 0x7f1e9ce25310>), (u'vilnius_c', <django.utils.functional.__proxy__ object at 0x7f1e9ce25950>), (u'vilnius', <django.utils.functional.__proxy__ object at 0x7f1e9ce25290>), (u'visaginas', <django.utils.functional.__proxy__ object at 0x7f1e9ce25490>), (u'zarasai', <django.utils.functional.__proxy__ object at 0x7f1e9ce252d0>))¶ Alphabetically sorted lists of Lithuanian municipalities.