PageRenderTime 56ms CodeModel.GetById 53ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1"""
 2UK-specific Form helpers
 3"""
 4
 5from django.forms.fields import Select
 6
 7class 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)