Make ChoiceWidget.format_value() return a list
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.
Summary: |
Make ChoiceWidget.format_value return a list → Make ChoiceWidget.format_value() return a list
|
Triage Stage: |
Unreviewed → Accepted
|
Version: |
master → 1.11
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
https://github.com/django/django/pull/8090