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)[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': <django.utils.functional.__proxy__ object at 0x7f953ec0c410>, 'invalid': <django.utils.functional.__proxy__ object at 0x7f953ec0c6d0>}¶
-
Data¶
-
localflavor.nl.nl_provinces.
PROVINCE_CHOICES
= ((u'DR', <django.utils.functional.__proxy__ object at 0x7f953e458b10>), (u'FL', <django.utils.functional.__proxy__ object at 0x7f953e4587d0>), (u'FR', <django.utils.functional.__proxy__ object at 0x7f953e458a50>), (u'GL', <django.utils.functional.__proxy__ object at 0x7f953e458a90>), (u'GR', <django.utils.functional.__proxy__ object at 0x7f953e458ad0>), (u'LB', <django.utils.functional.__proxy__ object at 0x7f953e458e50>), (u'NB', <django.utils.functional.__proxy__ object at 0x7f953e458b90>), (u'NH', <django.utils.functional.__proxy__ object at 0x7f953e458d90>), (u'OV', <django.utils.functional.__proxy__ object at 0x7f953e458dd0>), (u'UT', <django.utils.functional.__proxy__ object at 0x7f953e458e10>), (u'ZE', <django.utils.functional.__proxy__ object at 0x7f953e458ed0>), (u'ZH', <django.utils.functional.__proxy__ object at 0x7f953e458b50>))¶ An alphabetical list of provinces