mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Changed foreign key field value to reference the required string directly rather than id from StudentStatus and CustomUser with Subjects
This commit is contained in:
parent
63d16eae17
commit
fc031e9e51
5 changed files with 68 additions and 6 deletions
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 4.2.3 on 2023-09-05 12:19
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('subjects', '0002_alter_subject_name_alter_subjectinstance_subject'),
|
||||
('student_status', '0002_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='studentstatus',
|
||||
name='subject',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='subjects.subject', to_field='name'),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue