mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Connected course to user
This commit is contained in:
parent
a12e66caed
commit
48f6bee125
6 changed files with 67 additions and 9 deletions
20
stude/accounts/migrations/0002_alter_customuser_course.py
Normal file
20
stude/accounts/migrations/0002_alter_customuser_course.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-27 06:29
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('courses', '0001_initial'),
|
||||
('accounts', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='customuser',
|
||||
name='course',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='courses.course'),
|
||||
),
|
||||
]
|
20
stude/accounts/migrations/0003_alter_customuser_course.py
Normal file
20
stude/accounts/migrations/0003_alter_customuser_course.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-27 06:31
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('courses', '0001_initial'),
|
||||
('accounts', '0002_alter_customuser_course'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='customuser',
|
||||
name='course',
|
||||
field=models.ForeignKey(default='BSIT', on_delete=django.db.models.deletion.CASCADE, to='courses.course'),
|
||||
),
|
||||
]
|
20
stude/accounts/migrations/0004_alter_customuser_course.py
Normal file
20
stude/accounts/migrations/0004_alter_customuser_course.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-27 06:34
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('courses', '0001_initial'),
|
||||
('accounts', '0003_alter_customuser_course'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='customuser',
|
||||
name='course',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.course'),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue