mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 14:29:25 +08:00
28 lines
763 B
Python
28 lines
763 B
Python
|
# Generated by Django 4.2.2 on 2023-06-27 09:44
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('courses', '0001_initial'),
|
||
|
('subjects', '0001_initial'),
|
||
|
]
|
||
|
|
||
|
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'),
|
||
|
),
|
||
|
]
|