2023-07-09 19:00:47 +08:00
|
|
|
# Generated by Django 4.2.3 on 2023-07-09 10:57
|
2023-06-27 18:15:31 +08:00
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
2023-06-28 00:49:11 +08:00
|
|
|
('courses', '0001_initial'),
|
2023-07-09 19:00:47 +08:00
|
|
|
('subjects', '0001_initial'),
|
2023-06-27 18:15:31 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='subjectcourse',
|
|
|
|
name='subject',
|
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='subjects.subject'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='course',
|
|
|
|
name='subjects',
|
|
|
|
field=models.ManyToManyField(related_name='SubjectCourse_course', through='courses.SubjectCourse', to='subjects.subject'),
|
|
|
|
),
|
|
|
|
]
|