The Netherlands (nl)¶
Forms¶
NL-specific Form helpers
- class localflavor.nl.forms.NLPhoneNumberField(required=True, widget=None, label=None, initial=None, help_text='', error_messages=None, show_hidden_initial=False, validators=, []localize=False)[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 its choices.
Models¶
- class localflavor.nl.models.NLBankAccountNumberField(*args, **kwargs)[source]¶
A Dutch bank account model field.
This model field uses NLBankAccountNumberFieldValidator for validation.
New in version 1.1.
- class localflavor.nl.models.NLBankAccountNumberFieldValidator(regex=None, message=None, code=None)[source]¶
Validation for Dutch bank accounts.
Validation references: http://www.mobilefish.com/services/elfproef/elfproef.php http://www.credit-card.be/BankAccount/ValidationRules.htm#NL_Validation
New in version 1.1.
- default_error_messages = {'wrong_length': 'Bank account numbers have 1 - 7, 9 or 10 digits', 'invalid': 'Enter a valid bank account number'}¶
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