Belgium (be
)¶
Forms¶
Belgium-specific Form helpers
-
class
localflavor.be.forms.
BEPhoneNumberField
(max_length=None, min_length=None, *args, **kwargs)[source]¶ A form field that validates its input as a belgium phone number.
Landlines have a seven-digit subscriber number and a one-digit area code, while smaller cities have a six-digit subscriber number and a two-digit area code. Cell phones have a six-digit subscriber number and a two-digit area code preceeded by the number 4. 0d ddd dd dd, 0d/ddd.dd.dd, 0d.ddd.dd.dd, 0dddddddd - dialling a bigger city 0dd dd dd dd, 0dd/dd.dd.dd, 0dd.dd.dd.dd, 0dddddddd - dialling a smaller city 04dd ddd dd dd, 04dd/ddd.dd.dd, 04dd.ddd.dd.dd, 04ddddddddd - dialling a mobile number
-
class
localflavor.be.forms.
BEPostalCodeField
(max_length=None, min_length=None, *args, **kwargs)[source]¶ A form field that validates its input as a belgium postal code.
Belgium postal code is a 4 digits string. The first digit indicates the province (except for the 3ddd numbers that are shared by the eastern part of Flemish Brabant and Limburg and the and 1ddd that are shared by the Brussels Capital Region, the western part of Flemish Brabant and Walloon Brabant)
Data¶
-
localflavor.be.be_provinces.
PROVINCE_CHOICES
= (('VAN', <django.utils.functional.__proxy__ object at 0x7f953fb51c50>), ('BRU', <django.utils.functional.__proxy__ object at 0x7f953fb51d50>), ('VOV', <django.utils.functional.__proxy__ object at 0x7f953fb51510>), ('VBR', <django.utils.functional.__proxy__ object at 0x7f953fb51310>), ('WHT', <django.utils.functional.__proxy__ object at 0x7f953fb51550>), ('WLG', <django.utils.functional.__proxy__ object at 0x7f953fb51750>), ('VLI', <django.utils.functional.__proxy__ object at 0x7f953fb515d0>), ('WLX', <django.utils.functional.__proxy__ object at 0x7f953fb516d0>), ('WNA', <django.utils.functional.__proxy__ object at 0x7f953fb51710>), ('WBR', <django.utils.functional.__proxy__ object at 0x7f953fb51850>), ('VWV', <django.utils.functional.__proxy__ object at 0x7f953fb517d0>))¶ ISO codes
-
localflavor.be.be_regions.
REGION_CHOICES
= (('BRU', <django.utils.functional.__proxy__ object at 0x7f953fb51650>), ('VLG', <django.utils.functional.__proxy__ object at 0x7f953fb51910>), ('WAL', <django.utils.functional.__proxy__ object at 0x7f953fb51e90>))¶ ISO codes