| 12 | | """ |
| 13 | | A Select widget that uses a list of Chilean Regions (Regiones) |
| 14 | | as its choices. |
| 15 | | """ |
| 16 | | def __init__(self, attrs=None): |
| 17 | | from cl_regions import REGION_CHOICES |
| 18 | | super(CLRegionSelect, self).__init__(attrs, choices=REGION_CHOICES) |
| | 12 | |
| | 13 | def __init__(self, attrs=None): |
| | 14 | from cl_reg_prov_com import REGION_CHOICES |
| | 15 | super(CLRegionSelect, self).__init__(attrs, choices=REGION_CHOICES) |
| | 17 | class CLProvinciaSelect(Select): |
| | 18 | |
| | 19 | def __init__(self, attrs=None): |
| | 20 | from cl_reg_prov_com import PROVINCIA_CHOICES |
| | 21 | super(CLProvinciaSelect, self).__init__(attrs, choices=PROVINCIA_CHOICES) |
| | 22 | |
| | 23 | class CLComunaSelect(Select): |
| | 24 | |
| | 25 | def __init__(self, attrs=None): |
| | 26 | from cl_reg_prov import COMUNA_CHOICES |
| | 27 | super(CLComunaSelect, self).__init__(attrs, choices=COMUNA_CHOICES) |
| | 28 | |