Great Britain (gb)

Forms

GB-specific Form helpers

class localflavor.gb.forms.GBCountySelect(attrs=None)[source]

A Select widget that uses a list of UK Counties/Regions as its choices.

class localflavor.gb.forms.GBNationSelect(attrs=None)[source]

A Select widget that uses a list of UK Nations as its choices.

class localflavor.gb.forms.GBPostcodeField(max_length=None, min_length=None, *args, **kwargs)[source]

A form field that validates its input is a UK postcode.

The regular expression used is sourced from the schema for British Standard BS7666 address types: http://www.govtalk.gov.uk/gdsc/schemas/bs7666-v2-0.xsd

The value is uppercased and a space added in the correct place, if required.

Data

localflavor.gb.gb_regions.ENGLAND_REGION_CHOICES = (('Bedfordshire', 'Bedfordshire'), ('Berkshire', 'Berkshire'), ('Bristol', 'Bristol'), ('Buckinghamshire', 'Buckinghamshire'), ('Cambridgeshire', 'Cambridgeshire'), ('Cheshire', 'Cheshire'), ('City of London', 'City of London'), ('Cornwall', 'Cornwall'), ('County Durham', 'County Durham'), ('Cumbria', 'Cumbria'), ('Derbyshire', 'Derbyshire'), ('Devon', 'Devon'), ('Dorset', 'Dorset'), ('East Riding of Yorkshire', 'East Riding of Yorkshire'), ('East Sussex', 'East Sussex'), ('Essex', 'Essex'), ('Gloucestershire', 'Gloucestershire'), ('Greater London', 'Greater London'), ('Greater Manchester', 'Greater Manchester'), ('Hampshire', 'Hampshire'), ('Herefordshire', 'Herefordshire'), ('Hertfordshire', 'Hertfordshire'), ('Isle of Wight', 'Isle of Wight'), ('Kent', 'Kent'), ('Lancashire', 'Lancashire'), ('Leicestershire', 'Leicestershire'), ('Lincolnshire', 'Lincolnshire'), ('Merseyside', 'Merseyside'), ('Norfolk', 'Norfolk'), ('North Yorkshire', 'North Yorkshire'), ('Northamptonshire', 'Northamptonshire'), ('Northumberland', 'Northumberland'), ('Nottinghamshire', 'Nottinghamshire'), ('Oxfordshire', 'Oxfordshire'), ('Rutland', 'Rutland'), ('Shropshire', 'Shropshire'), ('Somerset', 'Somerset'), ('South Yorkshire', 'South Yorkshire'), ('Staffordshire', 'Staffordshire'), ('Suffolk', 'Suffolk'), ('Surrey', 'Surrey'), ('Tyne and Wear', 'Tyne and Wear'), ('Warwickshire', 'Warwickshire'), ('West Midlands', 'West Midlands'), ('West Sussex', 'West Sussex'), ('West Yorkshire', 'West Yorkshire'), ('Wiltshire', 'Wiltshire'), ('Worcestershire', 'Worcestershire'))

English regions http://en.wikipedia.org/wiki/List_of_ceremonial_counties_of_England

localflavor.gb.gb_regions.NORTHERN_IRELAND_REGION_CHOICES = (('County Antrim', 'County Antrim'), ('County Armagh', 'County Armagh'), ('County Down', 'County Down'), ('County Fermanagh', 'County Fermanagh'), ('County Londonderry', 'County Londonderry'), ('County Tyrone', 'County Tyrone'))

Northern Ireland regions: http://en.wikipedia.org/wiki/List_of_Irish_counties_by_area

localflavor.gb.gb_regions.WALES_REGION_CHOICES = (('Clwyd', 'Clwyd'), ('Dyfed', 'Dyfed'), ('Gwent', 'Gwent'), ('Gwynedd', 'Gwynedd'), ('Mid Glamorgan', 'Mid Glamorgan'), ('Powys', 'Powys'), ('South Glamorgan', 'South Glamorgan'), ('West Glamorgan', 'West Glamorgan'))

Welsh regions: http://en.wikipedia.org/wiki/Preserved_counties_of_Wales

localflavor.gb.gb_regions.SCOTTISH_REGION_CHOICES = (('Borders', 'Borders'), ('Central Scotland', 'Central Scotland'), ('Dumfries and Galloway', 'Dumfries and Galloway'), ('Fife', 'Fife'), ('Grampian', 'Grampian'), ('Highland', 'Highland'), ('Lothian', 'Lothian'), ('Orkney Islands', 'Orkney Islands'), ('Shetland Islands', 'Shetland Islands'), ('Strathclyde', 'Strathclyde'), ('Tayside', 'Tayside'), ('Western Isles', 'Western Isles'))

Scottish regions: http://en.wikipedia.org/wiki/Regions_and_districts_of_Scotland

localflavor.gb.gb_regions.GB_NATIONS_CHOICES = (('England', 'England'), ('Northern Ireland', 'Northern Ireland'), ('Scotland', 'Scotland'), ('Wales', 'Wales'))

Great Britain nations

localflavor.gb.gb_regions.GB_REGION_CHOICES = (('Bedfordshire', 'Bedfordshire'), ('Berkshire', 'Berkshire'), ('Bristol', 'Bristol'), ('Buckinghamshire', 'Buckinghamshire'), ('Cambridgeshire', 'Cambridgeshire'), ('Cheshire', 'Cheshire'), ('City of London', 'City of London'), ('Cornwall', 'Cornwall'), ('County Durham', 'County Durham'), ('Cumbria', 'Cumbria'), ('Derbyshire', 'Derbyshire'), ('Devon', 'Devon'), ('Dorset', 'Dorset'), ('East Riding of Yorkshire', 'East Riding of Yorkshire'), ('East Sussex', 'East Sussex'), ('Essex', 'Essex'), ('Gloucestershire', 'Gloucestershire'), ('Greater London', 'Greater London'), ('Greater Manchester', 'Greater Manchester'), ('Hampshire', 'Hampshire'), ('Herefordshire', 'Herefordshire'), ('Hertfordshire', 'Hertfordshire'), ('Isle of Wight', 'Isle of Wight'), ('Kent', 'Kent'), ('Lancashire', 'Lancashire'), ('Leicestershire', 'Leicestershire'), ('Lincolnshire', 'Lincolnshire'), ('Merseyside', 'Merseyside'), ('Norfolk', 'Norfolk'), ('North Yorkshire', 'North Yorkshire'), ('Northamptonshire', 'Northamptonshire'), ('Northumberland', 'Northumberland'), ('Nottinghamshire', 'Nottinghamshire'), ('Oxfordshire', 'Oxfordshire'), ('Rutland', 'Rutland'), ('Shropshire', 'Shropshire'), ('Somerset', 'Somerset'), ('South Yorkshire', 'South Yorkshire'), ('Staffordshire', 'Staffordshire'), ('Suffolk', 'Suffolk'), ('Surrey', 'Surrey'), ('Tyne and Wear', 'Tyne and Wear'), ('Warwickshire', 'Warwickshire'), ('West Midlands', 'West Midlands'), ('West Sussex', 'West Sussex'), ('West Yorkshire', 'West Yorkshire'), ('Wiltshire', 'Wiltshire'), ('Worcestershire', 'Worcestershire'), ('County Antrim', 'County Antrim'), ('County Armagh', 'County Armagh'), ('County Down', 'County Down'), ('County Fermanagh', 'County Fermanagh'), ('County Londonderry', 'County Londonderry'), ('County Tyrone', 'County Tyrone'), ('Clwyd', 'Clwyd'), ('Dyfed', 'Dyfed'), ('Gwent', 'Gwent'), ('Gwynedd', 'Gwynedd'), ('Mid Glamorgan', 'Mid Glamorgan'), ('Powys', 'Powys'), ('South Glamorgan', 'South Glamorgan'), ('West Glamorgan', 'West Glamorgan'), ('Borders', 'Borders'), ('Central Scotland', 'Central Scotland'), ('Dumfries and Galloway', 'Dumfries and Galloway'), ('Fife', 'Fife'), ('Grampian', 'Grampian'), ('Highland', 'Highland'), ('Lothian', 'Lothian'), ('Orkney Islands', 'Orkney Islands'), ('Shetland Islands', 'Shetland Islands'), ('Strathclyde', 'Strathclyde'), ('Tayside', 'Tayside'), ('Western Isles', 'Western Isles'))

All regions of Great Britain

Table Of Contents

Previous topic

France (fr)

Next topic

Hong Kong (hk)

This Page