#26409: Python 2.7.11 causes manage.py ValueError
-------------------------------------+-------------------------------------
     Reporter:  Walkman              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Management     |                  Version:  1.9
  commands)                          |
     Severity:  Release blocker      |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Walkman):

 * status:  closed => new
 * resolution:  needsinfo =>


Comment:

 Replying to [comment:3 aaugustin]:
 > There's likely an issue with the `choices` kwarg of a field definition.
 Unfortunately, due to technical limitations of my crystal ball, I cannot
 guess much more.

 You sir have a pretty good crystal ball!

 This line caused the issue:
 {{{
     timezone_name = models.CharField(_('timezone'), max_length=35,
                                      choices=tuple(pytz.all_timezones),
                                      default=settings.TIME_ZONE)
 }}}

 `pytz.all_timezones` is not a tuple of two-tuples just a single tuple.
 Why does it work in Python 2.7.10 and don't in 2.7.11?

--
Ticket URL: <https://code.djangoproject.com/ticket/26409#comment:4>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.80d1cb70623edc9e082b4b10f98817a9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to