Django Attributeerror: 'str' Object Has No Attribute 'model'
I have the below form; class RemoveMemberForm(Form): member = forms.ModelChoiceField(queryset='', empty_label='Choose a Member', ) And th
Solution 1:
This is because you specified:
queryset=""In your form. Use a queryset instead (e.g. queryset=Member.objects.all()).
Post a Comment for "Django Attributeerror: 'str' Object Has No Attribute 'model'"