﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32434	Using a RadioSelect widget with ModelChoiceField results in no empty option	Matthew Rowbottom	nobody	"Prior to Django v3.1, both of the fields in the following form would be rendered with an empty option, labelled as '---------':

{{{#!python
from django import forms
from .models import Animal

class AnimalForm(forms.Form):
    animal_select = forms.ModelChoiceField(
        queryset=Animal.objects.all(),
        required=False,
    )
    animal_radio = forms.ModelChoiceField(
        queryset=Animal.objects.all(),
        required=False,
        widget=forms.RadioSelect()
    )
}}}

Since Django v3.1, the field using the RadioSelect widget no longer displays the empty option.

I've tested it with the following versions:

3.0    works
3.0.12    works
3.1    broken
3.1.6     broken
3.2a1    broken

I can't find anything in the docs or the v3.1 release notes (https://docs.djangoproject.com/en/dev/releases/3.1/#forms) to explain the change."	Bug	closed	Forms	3.1	Normal	wontfix	modelchoicefield radioselect		Unreviewed	0	0	0	0	0	1
