~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to django/contrib/localflavor/ie/forms.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2012-03-31 14:48:00 UTC
  • mfrom: (1.2.12)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: package-import@ubuntu.com-20120331144800-6a44u7d8z6pd2br4
Tags: upstream-1.4
Import upstream version 1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
UK-specific Form helpers
3
3
"""
4
4
 
 
5
from __future__ import absolute_import
 
6
 
 
7
from django.contrib.localflavor.ie.ie_counties import IE_COUNTY_CHOICES
5
8
from django.forms.fields import Select
6
9
 
 
10
 
7
11
class IECountySelect(Select):
8
12
    """
9
13
    A Select widget that uses a list of Irish Counties as its choices.
10
14
    """
11
15
    def __init__(self, attrs=None):
12
 
        from ie_counties import IE_COUNTY_CHOICES
13
16
        super(IECountySelect, self).__init__(attrs, choices=IE_COUNTY_CHOICES)