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)
Source:stackexchange.com