diff --git a/django/contrib/localflavor/pl/forms.py b/django/contrib/localflavor/pl/forms.py index 5532eb803b..ee362fcd6d 100644 --- a/django/contrib/localflavor/pl/forms.py +++ b/django/contrib/localflavor/pl/forms.py @@ -16,13 +16,13 @@ class PLProvinceSelect(Select): from pl_voivodeships import VOIVODESHIP_CHOICES super(PLProvinceSelect, self).__init__(attrs, choices=VOIVODESHIP_CHOICES) -class PLCountiesSelect(Select): +class PLCountySelect(Select): """ A select widget with list of Polish administrative units as choices. """ def __init__(self, attrs=None): from pl_administrativeunits import ADMINISTRATIVE_UNIT_CHOICES - super(PLCountiesSelect, self).__init__(attrs, choices=ADMINISTRATIVE_UNIT_CHOICES) + super(PLCountySelect, self).__init__(attrs, choices=ADMINISTRATIVE_UNIT_CHOICES) class PLPESELField(RegexField): """ diff --git a/tests/regressiontests/forms/localflavor/pl.py b/tests/regressiontests/forms/localflavor/pl.py index 89679644db..ce6ccda81a 100644 --- a/tests/regressiontests/forms/localflavor/pl.py +++ b/tests/regressiontests/forms/localflavor/pl.py @@ -9,10 +9,10 @@ tests = r""" >>> f.render('voivodeships','pomerania') u'' -# PLCountiesSelect ########################################################## +# PLCountySelect ########################################################## ->>> from django.contrib.localflavor.pl.forms import PLCountiesSelect ->>> f = PLCountiesSelect() +>>> from django.contrib.localflavor.pl.forms import PLCountySelect +>>> f = PLCountySelect() >>> f.render('administrativeunit','katowice') u''