
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)


from __future__ import absolute_import

from django.contrib.localflavor.ie.ie_counties import IE_COUNTY_CHOICES
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):
        super(IECountySelect, self).__init__(attrs, choices=IE_COUNTY_CHOICES)

Remove all relative imports. We have always been at war with relative imports.
Remove all relative imports.  We have always been at war with relative imports.

git-svn-id: 4f9f921b081c523744c7bf24d959a0db39629563@17009 bcc190cf-cafb-0310-a4f2-bffc1f526a37

  
+ from __future__ import absolute_import
+ 
+ from django.contrib.localflavor.ie.ie_counties import IE_COUNTY_CHOICES
  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)
  
Remove all relative imports. We have always been at war with relative imports.
## Code Before:

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)

## Instruction:
Remove all relative imports. We have always been at war with relative imports.
## Code After:

from __future__ import absolute_import

from django.contrib.localflavor.ie.ie_counties import IE_COUNTY_CHOICES
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):
        super(IECountySelect, self).__init__(attrs, choices=IE_COUNTY_CHOICES)
