Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to add students #9

Open
dylan1011 opened this issue Oct 29, 2021 · 1 comment
Open

not able to add students #9

dylan1011 opened this issue Oct 29, 2021 · 1 comment

Comments

@dylan1011
Copy link

No description provided.

@MhdAliHarmalani
Copy link

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="")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants