#14166 closed (fixed)
Indian states are not specified as a tuple of tuples
| Reported by: | Flavio Curella | Owned by: | nobody |
|---|---|---|---|
| Component: | contrib.localflavor | Version: | 1.2 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Indian states in in_states.py are specified as a simple tuple of single elements:
STATE_CHOICES = (
'KA', 'Karnataka',
'AP', 'Andhra Pradesh',
'KL', 'Kerala',
'TN', 'Tamil Nadu',
where it should be as a tuple of 2-elements tuple, as:
STATE_CHOICES = (
('KA', 'Karnataka'),
('AP', 'Andhra Pradesh'),
('KL', 'Kerala'),
('TN', 'Tamil Nadu'),
This result in a too many values to unpack error when using the class INStateSelect
Attachments (1)
Change History (4)
by , 15 years ago
| Attachment: | in_states.diff added |
|---|
comment:1 by , 15 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|
comment:2 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
Bug is obvious and the patch is trivial, so marking it as RFC.