[Answer]-Why do I have to set the choices manually in a ModelForm when using RadioSelect widget

1👍

You need to repopulate choices property of the newly created RadioSelect:

def __init__(self, *args, **kwargs):
    super(AccountEditForm, self).__init__(*args, **kwargs)
    self.fields['newsletter_setting'].widget = forms.RadioSelect(
                   choices=self.fields['newsletter_setting'].widget.choices)

Leave a comment