Skip to main content

Country-specific Django helpers for Lithuania.

Project description

Country-specific Django helpers for Lithuania.

What’s in the Lithuania localflavor?

  • forms.LTIDCodeField: A form field that validated input as a Lithuanian identity code. Following checks are made:

    • The number consists of 11 digits.

    • The birthdate is a valid date.

    • The calculated checksum is correct.

  • forms.LTCountySelect: A form Select widget that uses a list of Lithuanian counties as choices.

  • forms.LTMunicipalitySelect: A form Select widget that uses a list of Lithuanian municipalities as choices.

  • forms.LTPostalCodeField: A form input that validates Lithuanian postal codes in the format XXXXX or LT-XXXXX.

See the source code for full details.

About localflavors

Django’s “localflavor” packages offer additional functionality for particular countries or cultures.

For example, these might include form fields for your country’s postal codes, phone number formats or government ID numbers.

This code used to live in Django proper – in django.contrib.localflavor – but was separated into standalone packages in Django 1.5 to keep the framework’s core clean.

For a list of other available localflavors, see https://github.com/django/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-localflavor-lt-1.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file django-localflavor-lt-1.1.tar.gz.

File metadata

File hashes

Hashes for django-localflavor-lt-1.1.tar.gz
Algorithm Hash digest
SHA256 1ad95b67a50007a6d024d42fc2b57a772c1d40e3e962adabf8022ad4450ce1a5
MD5 e77bf43ee2e6601a48423e69c50bf42c
BLAKE2b-256 fba266c6682fb2f6c6ef31ca2755d282eea3c1fe749caaa94220f70d0876fccb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page