#28157: Options order is lost in choicefields when mixing grouped and 
non-grouped
options.
--------------------------------------+------------------------
               Reporter:  atopus      |          Owner:  nobody
                   Type:  Bug         |         Status:  new
              Component:  Forms       |        Version:  1.11
               Severity:  Normal      |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  1
                  UI/UX:  1           |
--------------------------------------+------------------------
 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,

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

Reply via email to