Skip to content

jensadne/django-localflavor-no

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django_localflavor_no

Country-specific Django helpers for Norway.

What's in the Norway localflavor?

  • forms.NOSocialSecurityNumber: A form field that validates input as a Norwegian social security number (personnummer).
  • forms.NOZipCodeField: A form field that validates input as a Norwegian zip code. Valid codes have four digits.
  • forms.NOMunicipalitySelect: A Select widget that uses a list of Norwegian municipalities (fylker) as its choices.
  • forms.NOPhoneNumberField: Field with phonenumber validation. Requires a phone number with
    8 digits and optional country code

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 full list of available localflavors, see https://github.com/django/

About

Country-specific Django helpers for Norway.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%