Changeset 6855
- Timestamp:
- 12/02/07 18:35:31 (11 months ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/contrib/localflavor/uk/forms.py (modified) (2 diffs)
- django/trunk/django/contrib/localflavor/uk/uk_regions.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r6852 r6855 269 269 Brian Ray <http://brianray.chipy.org/> 270 270 remco@diji.biz 271 David Reynolds <david@reynoldsfamily.org.uk> 271 272 rhettg@gmail.com 272 273 ricardojbarrios@gmail.com django/trunk/django/contrib/localflavor/uk/forms.py
r5876 r6855 3 3 """ 4 4 5 from django.newforms.fields import RegexField 5 from django.newforms.fields import RegexField, Select 6 6 from django.utils.translation import ugettext 7 7 … … 18 18 error_message=ugettext(u'Enter a postcode. A space is required between the two postcode parts.'), 19 19 *args, **kwargs) 20 21 class UKCountySelect(Select): 22 """ 23 A Select widget that uses a list of UK Counties/Regions as its choices. 24 """ 25 def __init__(self, attrs=None): 26 from uk_regions import UK_REGION_CHOICES 27 super(UKCountySelect, self).__init__(attrs, choices=UK_REGION_CHOICES) 28 29 class UKNationSelect(Select): 30 """ 31 A Select widget that uses a list of UK Nations as its choices. 32 """ 33 def __init__(self, attrs=None): 34 from uk_regions import UK_NATIONS_CHOICES 35 super(UKNationSelect, self).__init__(attrs, choices=UK_NATIONS_CHOICES)
