Changeset 8230 for django/trunk/django/contrib/localflavor/pe/forms.py
- Timestamp:
- 08/08/08 10:34:02 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/contrib/localflavor/pe/forms.py
r7971 r8230 8 8 from django.utils.translation import ugettext_lazy as _ 9 9 10 class PE DepartmentSelect(Select):10 class PERegionSelect(Select): 11 11 """ 12 A Select widget that uses a list of Peruvian Departments as its choices.12 A Select widget that uses a list of Peruvian Regions as its choices. 13 13 """ 14 14 def __init__(self, attrs=None): 15 from pe_ department import DEPARTMENT_CHOICES16 super(PE DepartmentSelect, self).__init__(attrs, choices=DEPARTMENT_CHOICES)15 from pe_region import REGION_CHOICES 16 super(PERegionSelect, self).__init__(attrs, choices=REGION_CHOICES) 17 17 18 18 class PEDNIField(CharField):
