#31057: Choices enum - Inconsistent values
-------------------------------------+-------------------------------------
               Reporter:             |          Owner:  nobody
  laevilgenius                       |
                   Type:  Bug        |         Status:  new
              Component:  Database   |        Version:  3.0
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:  enum
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Labeled enum members have their values wrapped in tuples:
 {{{
 class E(Choices):
     FOO = 1
     BAR = 2, 'bar'

 >>> E.FOO.value
 1
 >>> E.BAR.value
 (2,)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31057>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.e91c8df9951cc545956a9b519ad73e20%40djangoproject.com.

Reply via email to