/django/contrib/localflavor/ie/forms.py
https://code.google.com/p/mango-py/ · Python · 13 lines · 5 code · 2 blank · 6 comment · 0 complexity · cc71b71206410ad717cf88f406ebb1eb MD5 · raw file
- """
- UK-specific Form helpers
- """
- from django.forms.fields import Select
- class IECountySelect(Select):
- """
- A Select widget that uses a list of Irish Counties as its choices.
- """
- def __init__(self, attrs=None):
- from ie_counties import IE_COUNTY_CHOICES
- super(IECountySelect, self).__init__(attrs, choices=IE_COUNTY_CHOICES)