The Netherlands (nl
)¶
Forms¶
NL-specific Form helpers
-
class
localflavor.nl.forms.
NLPhoneNumberField
(required=True, widget=None, label=None, initial=None, help_text=u'', error_messages=None, show_hidden_initial=False, validators=[], localize=False, label_suffix=None)[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': u'Bank account numbers have 1 - 7, 9 or 10 digits', 'invalid': u'Enter a valid bank account number'}¶
-
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