django-student-management-system icon indicating copy to clipboard operation
django-student-management-system copied to clipboard

not able to add students

Open dylan1011 opened this issue 3 years ago • 1 comments

dylan1011 avatar Oct 29 '21 13:10 dylan1011

it worked with me when I changed course_id to exist one, in models.py file in line 186: I changed from 1 to 2 like that:

Students.objects.create(admin=instance, course_id=Courses.objects.get(id=2), session_year_id=SessionYearModel.objects.get(id=1), address="", profile_pic="", gender="")

MhdAliHarmalani avatar Aug 23 '22 15:08 MhdAliHarmalani