mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2025-05-16 11:28:14 +08:00
Added time schedule model
This commit is contained in:
parent
864643278c
commit
1b02c8f3c6
20 changed files with 193 additions and 21 deletions
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 4.2 on 2023-04-22 05:08
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('students', '0009_student_full_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='student',
|
||||
name='current_semester',
|
||||
field=models.CharField(choices=[('1st Semester', 'First Sem'), ('2nd Semester', 'Second Sem')], default='1st Semester', max_length=20),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='student',
|
||||
name='year_level',
|
||||
field=models.CharField(choices=[('1st Year', 'First Year'), ('2nd Year', 'Second Year'), ('3rd Year', 'Third Year'), ('IU-Y4', '4th Year')], max_length=20),
|
||||
),
|
||||
]
|
19
infotech/students/migrations/0011_student_schedules.py
Normal file
19
infotech/students/migrations/0011_student_schedules.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Generated by Django 4.2 on 2023-04-22 05:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('schedules', '0002_alter_schedule_professor'),
|
||||
('students', '0010_alter_student_current_semester_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='student',
|
||||
name='schedules',
|
||||
field=models.ManyToManyField(related_name='StudentSchedule_subject', through='schedules.StudentSchedule', to='schedules.schedule'),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue