adilmohak / django-lms

A learning management system using django web framework. Course add and drop, grade and assessment result management, online quiz, report generator, student and lecturers management, dashboard, and so much more...
MIT License
474 stars 197 forks source link

Student Form adds New student but mark it as Lecturer in DB #27

Closed RazaSaleem closed 5 months ago

RazaSaleem commented 5 months ago

Student Form In the student section of the Django LMS whenever I try to add new students after creating it shows the student added successfully with pop but it does not display in the List of students because it marks it as lecturer using that student.

Steps to check Steps to reproduce the behaviour:

  1. Go to the Student Section
  2. Click on Add a student
  3. Fill the details in the form
  4. it will show a green pop that the student added successfully

Expected behaviour After that, the student is shown in the list below but instead, it appears in the lecturer list of the newly added student. But it should be displayed in the student list.

Screenshots

Screenshot 2024-02-06 155857 Screenshot 2024-02-06 155916

Desktop (please complete the following information):

Additional context I am issuing while solution above issue because I can't understand while file I have to fix this logic.

adilmohak commented 5 months ago

Hey, thank you for bringing this out. This error is now resolved.

RazaSaleem commented 5 months ago

Thank @adilmohak for the quick response, appreciated.