| changeset 29 | cc9b7e14412b |
| 28:b758351d191f | 29:cc9b7e14412b |
|---|---|
1 """ |
|
2 UK-specific Form helpers |
|
3 """ |
|
4 |
|
5 from django.forms.fields import Select |
|
6 |
|
7 class IECountySelect(Select): |
|
8 """ |
|
9 A Select widget that uses a list of Irish Counties as its choices. |
|
10 """ |
|
11 def __init__(self, attrs=None): |
|
12 from ie_counties import IE_COUNTY_CHOICES |
|
13 super(IECountySelect, self).__init__(attrs, choices=IE_COUNTY_CHOICES) |