The Netherlands (nl)

Forms

NL-specific Form helpers.

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

A Dutch telephone number field.

Deprecated since version 1.4: Use the django-phonenumber-field library instead.

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, empty_value='', *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.

Deprecated since version 1.6: Use localflavor.generic.models.IBANField with included_countries=(‘nl’) option instead. Note that a data migration is required to move the data from this field to a new IBANField: it needs to calculate check digits, add the bank identifier and zero-pad the bank number into a proper IBAN.

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.

Deprecated since version 1.4: Use the django-phonenumber-field library instead.

description = 'Dutch phone number'
formfield(**kwargs)[source]
validator = [<localflavor.nl.validators.NLPhoneNumberFieldValidator object>]
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>]
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>]

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