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.
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'¶
-
validator
= [<localflavor.nl.validators.NLPhoneNumberFieldValidator object at 0x7f934258c6d8>]¶
-
-
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.
-
description
= 'Dutch social security number (SoFi)'¶
-
validators
= [<localflavor.nl.validators.NLSoFiNumberFieldValidator object at 0x7f934258ce48>]¶
-
-
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'¶
-
validators
= [<localflavor.nl.validators.NLZipCodeFieldValidator object at 0x7f934258ce10>]¶
-
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