From 1abfb1df19d7a5722a190cb9988e27fc729bb788 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 27 Aug 2008 23:05:25 +0000 Subject: [PATCH] Fixed #8276: corrected another couple of names in localflavor.pl.forms. Patch by Piotr Lewandowski. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8643 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/localflavor/pl/forms.py | 4 ++-- tests/regressiontests/forms/localflavor/pl.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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''