mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Autocreate superuser from .env file as well as autogenerate year level and course records
This commit is contained in:
parent
48f6bee125
commit
ceba84acb5
16 changed files with 174 additions and 4 deletions
20
stude/accounts/migrations/0005_alter_customuser_semester.py
Normal file
20
stude/accounts/migrations/0005_alter_customuser_semester.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 4.2.2 on 2023-06-27 07:29
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('year_levels', '0001_initial'),
|
||||
('accounts', '0004_alter_customuser_course'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='customuser',
|
||||
name='semester',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='year_levels.year_level'),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue