mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Made student_status persistent rather than be deleted when unused. Add active field to student_status and auto create student_status instance when a user is created
This commit is contained in:
parent
ca527289af
commit
1256efa3d2
11 changed files with 142 additions and 10 deletions
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-26 14:51
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('student_status', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='studentstatus',
|
||||
old_name='x_latitude',
|
||||
new_name='x',
|
||||
),
|
||||
migrations.RenameField(
|
||||
model_name='studentstatus',
|
||||
old_name='y_latitude',
|
||||
new_name='y',
|
||||
),
|
||||
]
|
18
stude/student_status/migrations/0003_studentstatus_active.py
Normal file
18
stude/student_status/migrations/0003_studentstatus_active.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-26 15:11
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('student_status', '0002_rename_x_latitude_studentstatus_x_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='studentstatus',
|
||||
name='active',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-26 15:48
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('student_status', '0003_studentstatus_active'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='studentstatus',
|
||||
name='subject',
|
||||
field=models.CharField(max_length=100, null=True),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue