The Netherlands (nl)

Forms

NL-specific Form helpers.

class localflavor.nl.forms.NLPhoneNumberField(max_length=None, min_length=None, strip=True, empty_value=u'', *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=u'', *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 = u'Dutch phone number'
formfield(**kwargs)[source]
validator = [<localflavor.nl.validators.NLPhoneNumberFieldValidator object at 0x4fee090>]
class localflavor.nl.models.NLProvinceField(*args, **kwargs)[source]

A Dutch Province field.

New in version 1.3.

deconstruct()[source]
description = u'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 = u'Dutch social security number (SoFi)'
formfield(**kwargs)[source]
validators = [<localflavor.nl.validators.NLSoFiNumberFieldValidator object at 0x4feed10>]
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 = u'Dutch zipcode'
formfield(**kwargs)[source]
to_python(value)[source]
validators = [<localflavor.nl.validators.NLZipCodeFieldValidator object at 0x4fee750>]

Data

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

An alphabetical list of provinces