Commit 0e011835 authored by Mavrick Jordan Lee's avatar Mavrick Jordan Lee

Updated dashboard model for home unit of widget user. Migrated newly changed model.

parent b1816dca
# Generated by Django 3.2 on 2023-05-15 05:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0002_alter_department_home_unit'),
('announcements', '0003_announcement_announcement_author'),
]
operations = [
migrations.AlterField(
model_name='announcement',
name='announcement_author',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='dashboard.widgetuser', verbose_name='Author'),
),
migrations.AlterField(
model_name='announcement',
name='announcement_body',
field=models.TextField(max_length=250, null=True, unique=True, verbose_name='Body'),
),
migrations.AlterField(
model_name='announcement',
name='announcement_title',
field=models.CharField(max_length=50, null=True, unique=True, verbose_name='Title'),
),
]
# Generated by Django 3.2 on 2023-05-15 05:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='department',
name='home_unit',
field=models.CharField(max_length=50, null=True),
),
]
......@@ -5,7 +5,7 @@ from django.urls import reverse
class Department(models.Model):
dept_name = models.CharField(max_length=50, unique=True, null=True)
home_unit = models.CharField(max_length=50, unique=True, null=True)
home_unit = models.CharField(max_length=50, null=True)
def __str__(self):
return self.dept_name
......
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