Added information to Departments model in homepage.models associated to respective WidgetUsers

parent 53ac8367
# Generated by Django 3.2.12 on 2022-03-30 15:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('homepage', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='widgetuser',
name='email',
field=models.CharField(default='someemail@gmail.com', max_length=50),
),
migrations.AddField(
model_name='widgetuser',
name='id_name',
field=models.CharField(default='1234567', max_length=7),
),
migrations.AlterField(
model_name='widgetuser',
name='first_name',
field=models.CharField(default='first_name', max_length=50),
),
migrations.AlterField(
model_name='widgetuser',
name='last_name',
field=models.CharField(default='last_name', max_length=50),
),
migrations.AlterField(
model_name='widgetuser',
name='middle_name',
field=models.CharField(default='middle_name', max_length=50),
),
migrations.CreateModel(
name='Department',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('dept_name', models.CharField(max_length=50)),
('home_unit', models.CharField(max_length=50)),
('widgetuser', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.widgetuser')),
],
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment