Django error: "'ChoiceField' object has no attribute 'is_hidden'" Django error: "'ChoiceField' object has no attribute 'is_hidden'" django django

Django error: "'ChoiceField' object has no attribute 'is_hidden'"


ChoiceField is not a widget - it is a form field:

class CallForm (forms.ModelForm):    employee_id = forms.ChoiceField(choices=FormsTools.EmployeesToTuples(Employee.objects.all()))    class Meta:        model = Call        fields = ['employee_id']