#27866: Make ChoiceWidget.format_value return a list
------------------------------------------------+------------------------
               Reporter:  Claude Paroz          |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Forms                 |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 Currently, `ChoiceWidget.format_value` returns a set. I have a use case
 with a custom widget where selected value ordering matters. I can subclass
 `format_value` in my widget subclass, but I wonder if the transformation
 to a set, losing value ordering, is there on purpose. It seems the test
 suite does not fail when keeping a list. I'll suggest a patch.

--
Ticket URL: <https://code.djangoproject.com/ticket/27866>
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/050.3fb058183898fab6f611ed2e615d3a2d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to