Ticket #8276: polish_forms_r8521.diff
File polish_forms_r8521.diff, 891 bytes (added by , 16 years ago) |
---|
-
django/contrib/localflavor/pl/forms.py
16 16 from pl_voivodeships import VOIVODESHIP_CHOICES 17 17 super(PLProvinceSelect, self).__init__(attrs, choices=VOIVODESHIP_CHOICES) 18 18 19 class PLCount iesSelect(Select):19 class PLCountySelect(Select): 20 20 """ 21 21 A select widget with list of Polish administrative units as choices. 22 22 """ 23 23 def __init__(self, attrs=None): 24 24 from pl_administrativeunits import ADMINISTRATIVE_UNIT_CHOICES 25 super(PLCount iesSelect, self).__init__(attrs, choices=ADMINISTRATIVE_UNIT_CHOICES)25 super(PLCountySelect, self).__init__(attrs, choices=ADMINISTRATIVE_UNIT_CHOICES) 26 26 27 27 class PLPESELField(RegexField): 28 28 """