| author | ymh <ymh.work@gmail.com> |
| Tue, 25 May 2010 02:43:45 +0200 | |
| changeset 29 | cc9b7e14412b |
| permissions | -rw-r--r-- |
| 29 | 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) |