web/lib/django/contrib/localflavor/ie/forms.py
changeset 29 cc9b7e14412b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/lib/django/contrib/localflavor/ie/forms.py	Tue May 25 02:43:45 2010 +0200
@@ -0,0 +1,13 @@
+"""
+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)