Source code for localflavor.ie.forms
"""
UK-specific Form helpers
"""
from __future__ import absolute_import
from django.forms.fields import Select
from .ie_counties import IE_COUNTY_CHOICES
[docs]class IECountySelect(Select):
"""
A Select widget that uses a list of Irish Counties as its choices.
"""
def __init__(self, attrs=None):
super(IECountySelect, self).__init__(attrs, choices=IE_COUNTY_CHOICES)