The Netherlands (nl)

Forms

NL-specific Form helpers.

class localflavor.nl.forms.NLPhoneNumberField(max_length=None, min_length=None, strip=True, *args, **kwargs)[source]

A Dutch telephone number field.

class localflavor.nl.forms.NLProvinceSelect(attrs=None)[source]

A Select widget that uses a list of provinces of the Netherlands as it’s choices.

class localflavor.nl.forms.NLSoFiNumberField(*args, **kwargs)[source]

A Dutch social security number (SoFi/BSN) field.

http://nl.wikipedia.org/wiki/Sofinummer

class localflavor.nl.forms.NLZipCodeField(max_length=None, min_length=None, strip=True, *args, **kwargs)[source]

A Dutch zip code field.

Models

class localflavor.nl.models.NLBankAccountNumberField(*args, **kwargs)[source]

A Dutch bank account model field.

This model field uses validators.NLBankAccountNumberFieldValidator for validation.

New in version 1.1.

class localflavor.nl.models.NLPhoneNumberField(*args, **kwargs)[source]

Dutch phone number model field.

This model field uses validators.NLPhoneNumberFieldValidator for validation.

New in version 1.3.

description = 'Dutch phone number'
formfield(**kwargs)[source]
validator = [<localflavor.nl.validators.NLPhoneNumberFieldValidator object at 0x7f0980327cc0>]
class localflavor.nl.models.NLProvinceField(*args, **kwargs)[source]

A Dutch Province field.

New in version 1.3.

deconstruct()[source]
description = 'Dutch province'
class localflavor.nl.models.NLSoFiNumberField(*args, **kwargs)[source]

A Dutch social security number (SoFi).

This model field uses validators.NLSoFiNumberFieldValidator for validation.

New in version 1.3.

description = 'Dutch social security number (SoFi)'
formfield(**kwargs)[source]
validators = [<localflavor.nl.validators.NLSoFiNumberFieldValidator object at 0x7f0980327c18>]
class localflavor.nl.models.NLZipCodeField(*args, **kwargs)[source]

A Dutch zip code model field.

This model field uses validators.NLZipCodeFieldValidator for validation.

New in version 1.3.

description = 'Dutch zipcode'
formfield(**kwargs)[source]
to_python(value)[source]
validators = [<localflavor.nl.validators.NLZipCodeFieldValidator object at 0x7f09803275c0>]

Data

localflavor.nl.nl_provinces.PROVINCE_CHOICES = (('DR', 'Drenthe'), ('FL', 'Flevoland'), ('FR', 'Fryslân'), ('GL', 'Gelderland'), ('GR', 'Groningen'), ('LB', 'Limburg'), ('NB', 'Noord-Brabant'), ('NH', 'Noord-Holland'), ('OV', 'Overijssel'), ('UT', 'Utrecht'), ('ZE', 'Zeeland'), ('ZH', 'Zuid-Holland'))

An alphabetical list of provinces