#14166: Indian states are not specified as a tuple of tuples
----------------------------------------+-----------------------------------
 Reporter:  gogna                       |       Owner:  nobody    
   Status:  new                         |   Milestone:            
Component:  django.contrib.localflavor  |     Version:  1.2       
 Keywords:                              |       Stage:  Unreviewed
Has_patch:  1                           |  
----------------------------------------+-----------------------------------
 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`

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14166>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to