Skip to content

Backend Automation for Student Enrollment & Admin Access Fixes#25

Open
kiirrttii wants to merge 1 commit intoSkyCascade:mainfrom
kiirrttii:main
Open

Backend Automation for Student Enrollment & Admin Access Fixes#25
kiirrttii wants to merge 1 commit intoSkyCascade:mainfrom
kiirrttii:main

Conversation

@kiirrttii
Copy link

What this PR does:
~Automates the creation of StudentProfile and Enrollment records when a new user is added.
~Ensures students are correctly linked to courses based on their program and semester.
~Fixes admin login and superuser access issues to restore full control of the backend.

Technical Details:

  1. Student Profile & Enrollment Automation:
  2. Uses Django ORM’s get_or_create() to automatically create StudentProfile and Enrollment.
  3. Scripts allow bulk creation of student profiles and enrollments for multiple users.
  4. Ensures database integrity and correct linking: User → StudentProfile → Enrollment.

Admin & Superuser Fixes:

  1. Verified existence of superusers and restored login functionality.
  2. Fixed migration and model issues affecting admin access.
  3. Ensured that StudentProfile, Course, and Enrollment models are fully accessible via the admin panel.

Impact / Benefits:

  1. Reduces manual work for creating student profiles and enrollments.
  2. Makes testing and development faster and more reliable.
  3. Restores admin functionality, enabling proper management of courses and students.

Copy link

@codeCraft-Ritik codeCraft-Ritik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice implementation — the code is clean and well-structured

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

Successfully merging this pull request may close these issues.

2 participants