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', 'Antwerp'), ('BRU', 'Brussels'), ('VOV', 'East Flanders'), ('VBR', 'Flemish Brabant'), ('WHT', 'Hainaut'), ('WLG', 'Liege'), ('VLI', 'Limburg'), ('WLX', 'Luxembourg'), ('WNA', 'Namur'), ('WBR', 'Walloon Brabant'), ('VWV', 'West Flanders'))¶ ISO codes
-
localflavor.be.be_regions.
REGION_CHOICES
= (('BRU', 'Brussels Capital Region'), ('VLG', 'Flemish Region'), ('WAL', 'Wallonia'))¶ ISO codes