1👍
✅
Variables in python are case-sensitive. Change the atribute form_Class
to the form_class
. Also the widgets
argument should contain a dict with the Widget
instances in the values:
form_class = forms.models.modelform_factory(Einflussideen,
widgets={'einfluss': forms.RadioSelect(choices=EINFLUSS)})
Source:stackexchange.com