#28157 closed Bug (fixed)
Options order is lost in choicefields when mixing grouped and non-grouped options.
Reported by: | Paul Antropius | Owned by: | Tim Graham |
---|---|---|---|
Component: | Forms | Version: | 1.11 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
With this tuple (fetched from django documentation),
MEDIA_CHOICES = ( ('Audio', ( ('vinyl', 'Vinyl'), ('cd', 'CD'), ) ), ('Video', ( ('vhs', 'VHS Tape'), ('dvd', 'DVD'), ) ), ('unknown', 'Unknown'), )
the "unknown" option is displayed at the beginning of the dropbox.
More generally, every non-grouped options are displayed first, followed by grouped options.
If an embedded mix of them is needed -- which is my case -- the order is entirely lost.
I guess this is not the expected behavior.
Thanks for your assistance,
Change History (6)
comment:1 by , 8 years ago
Easy pickings: | unset |
---|---|
Severity: | Normal → Release blocker |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 8 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Regression bisected to b52c73008a9d67e9ddbb841872dc15cdd3d6ee01 (template-based widget rendering).