#33193: Clarify enumeration types are true Python Enums
-------------------------------------+-------------------------------------
     Reporter:  johnthagen           |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Documentation        |                  Version:  3.2
     Severity:  Normal               |               Resolution:
     Keywords:  enum                 |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by johnthagen):

 Continuing some research, I learned that Django won't return an `Enum`
 instance from a field decorated using a `Choices` `Enum` (as described at
 the bottom of https://stackoverflow.com/a/58051918), unlike `django-
 enumfields` (https://pypi.org/project/django-enumfields/). Since the user
 doesn't get an `Enum` instance back out directly, perhaps the way the docs
 are currently worded is in fact appropriate.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33193#comment:1>
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/068.b100e3ffb78656edeb4eec1e97f2fc91%40djangoproject.com.

Reply via email to