The Netherlands (nl
)¶
Forms¶
NL-specific Form helpers.
-
class
localflavor.nl.forms.
NLBSNFormField
(*args, **kwargs)[source]¶ A Dutch social security number (BSN) field.
http://nl.wikipedia.org/wiki/Sofinummer
New in version 1.6.
-
class
localflavor.nl.forms.
NLPhoneNumberField
(*, max_length=None, min_length=None, strip=True, empty_value='', **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
New in version 1.3.
Deprecated since version 1.6: Use NLBSNFormField instead.
Models¶
-
class
localflavor.nl.models.
NLBSNField
(*args, **kwargs)[source]¶ A Dutch social security number (BSN).
This model field uses
validators.NLBSNFieldValidator
for validation.New in version 1.6.
-
description
= 'Dutch social security number (BSN)'¶
-
validators
= [<localflavor.nl.validators.NLBSNFieldValidator object>]¶
-
-
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'¶
-
validator
= [<localflavor.nl.validators.NLPhoneNumberFieldValidator object>]¶
-
-
class
localflavor.nl.models.
NLProvinceField
(*args, **kwargs)[source]¶ A Dutch Province field.
New in version 1.3.
-
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.
Deprecated since version 1.6: Use NLBSNField instead.
-
description
= 'Dutch social security number (SoFi)'¶
-
validators
= [<localflavor.nl.validators.NLSoFiNumberFieldValidator 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