Changes between Initial Version and Version 1 of Ticket #27331
- Timestamp:
- Oct 9, 2016, 10:09:20 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27331 – Description
initial v1 20 20 field = ModelChoiceField(queryset=Item.objects.order_by('category__name', 'name'), opt_group='category') 21 21 }}} 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.