Added relationship between subjects and student

This commit is contained in:
Keannu Christian Bernasol 2023-04-11 23:20:01 +08:00
parent ac0f4b5e28
commit 5182dfa8da
9 changed files with 148 additions and 48 deletions

View file

@ -0,0 +1,17 @@
# Generated by Django 4.2 on 2023-04-11 15:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('students', '0002_student_current_semester'),
]
operations = [
migrations.RemoveField(
model_name='student',
name='enrolled_subjects',
),
]

View file

@ -0,0 +1,19 @@
# Generated by Django 4.2 on 2023-04-11 15:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0003_remove_student_enrolled_subjects'),
('subjects', '0004_remove_subject_enrolled_count_subjectstudent_and_more'),
]
operations = [
migrations.AddField(
model_name='student',
name='enrolled_subjects',
field=models.ManyToManyField(through='subjects.SubjectStudent', to='subjects.subject'),
),
]