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)

class localflavor.be.forms.BEProvinceSelect(attrs=None)[source]

A Select widget that uses a list of belgium provinces as its choices.

class localflavor.be.forms.BERegionSelect(attrs=None)[source]

A Select widget that uses a list of belgium regions as its choices.

Data

localflavor.be.be_provinces.PROVINCE_CHOICES = (('VAN', <django.utils.functional.__proxy__ object at 0x7f1e9dd99150>), ('BRU', <django.utils.functional.__proxy__ object at 0x7f1e9dd991d0>), ('VOV', <django.utils.functional.__proxy__ object at 0x7f1e9dd99050>), ('VBR', <django.utils.functional.__proxy__ object at 0x7f1e9dd99090>), ('WHT', <django.utils.functional.__proxy__ object at 0x7f1e9dd990d0>), ('WLG', <django.utils.functional.__proxy__ object at 0x7f1e9dd99110>), ('VLI', <django.utils.functional.__proxy__ object at 0x7f1e9dd99f50>), ('WLX', <django.utils.functional.__proxy__ object at 0x7f1e9dd99650>), ('WNA', <django.utils.functional.__proxy__ object at 0x7f1e9dd99910>), ('WBR', <django.utils.functional.__proxy__ object at 0x7f1e9dd99f90>), ('VWV', <django.utils.functional.__proxy__ object at 0x7f1e9dd99250>))

ISO codes

localflavor.be.be_regions.REGION_CHOICES = (('BRU', <django.utils.functional.__proxy__ object at 0x7f1e9dd99fd0>), ('VLG', <django.utils.functional.__proxy__ object at 0x7f1e9dd9da10>), ('WAL', <django.utils.functional.__proxy__ object at 0x7f1e9dd9de90>))

ISO codes