mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Moved subject course associative entity to subjects app
This commit is contained in:
parent
8d9364274c
commit
ba7e79cdc2
8 changed files with 86 additions and 16 deletions
|
@ -0,0 +1,21 @@
|
|||
# Generated by Django 4.2.3 on 2023-07-10 09:34
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('courses', '0002_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='subjectcourse',
|
||||
name='course',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='subjectcourse',
|
||||
name='subject',
|
||||
),
|
||||
]
|
|
@ -0,0 +1,22 @@
|
|||
# Generated by Django 4.2.3 on 2023-07-10 09:34
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('subjects', '0002_subjectcourse_alter_subject_courses'),
|
||||
('courses', '0003_remove_subjectcourse_course_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='course',
|
||||
name='subjects',
|
||||
field=models.ManyToManyField(related_name='SubjectCourse_course', through='subjects.SubjectCourse', to='subjects.subject'),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='SubjectCourse',
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue