Added relationship between user and subjects

This commit is contained in:
Keannu Christian Bernasol 2023-06-28 17:12:14 +08:00
parent dc21bb8c32
commit e02d81f6fd
6 changed files with 67 additions and 3 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 4.2.2 on 2023-06-28 03:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('subjects', '0002_subjectstudent_subject_students'),
('accounts', '0002_initial'),
]
operations = [
migrations.AddField(
model_name='customuser',
name='subjects',
field=models.ManyToManyField(related_name='SubjectStudent_user', through='subjects.SubjectStudent', to='subjects.subject'),
),
]