Changes between Initial Version and Version 1 of Ticket #27331


Ignore:
Timestamp:
Oct 9, 2016, 10:09:20 PM (8 years ago)
Author:
Héctor Urbina
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27331 – Description

    initial v1  
    2020field = ModelChoiceField(queryset=Item.objects.order_by('category__name', 'name'), opt_group='category')
    2121}}}
    22 field.choices will dynamically collect choices into named groups as a 2-tuple, which the underlying widget should present using an optgroup HTML element.
     22`field.choices` will dynamically collect choices into named groups as a 2-tuple, which the underlying widget should present using `optgroup` HTML elements.
Back to Top