#33186: Clarify get_FOO_display returns name, not label, from models.Choices
-------------------------------------+-------------------------------------
               Reporter:  Andrew     |          Owner:  nobody
  Chen Wang                          |
                   Type:  New        |         Status:  new
  feature                            |
              Component:  Database   |        Version:  dev
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:  docs,choices
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 I think it would be nice if the docs explicitly mentioned that
 get_FOO_display returns name, not the label if you were to use
 models.IntegerChoices or models.TextChoices.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33186>
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/059.9d02125248aa53b2725bb6de2547da66%40djangoproject.com.

Reply via email to