#32110: Allow using an Enum class in form Field choices
------------------------------+------------------------------------
     Reporter:  Claude Paroz  |                    Owner:  nobody
         Type:  New feature   |                   Status:  new
    Component:  Forms         |                  Version:  master
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Accepted
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  1             |                    UI/UX:  0
------------------------------+------------------------------------
Changes (by Nick Pope):

 * easy:  0 => 1
 * stage:  Unreviewed => Accepted


Comment:

 As we use `.choices` on the enum classes to return a list of tuples there
 isn't really any code to add to make this work AFAICT.

 So this perhaps could just be documented for forms pointing to the
 documentation at
 https://docs.djangoproject.com/en/stable/ref/models/fields/#field-choices-
 enum-types

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32110#comment:2>
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/065.08ff26a086060a224241935e65f996df%40djangoproject.com.

Reply via email to