i am using a form from modelform class.but its showing an error of “ValueError at /list/
ModelForm has no model class specified”.
enter image description here
my model form-
from django.forms import ModelForm
from . models import Student
class StudentForm(ModelForm):
class meta:
model=Student
fields=’all‘
i tried everything and checked again and again…but not getting the desire output
New contributor
justin joseph is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.