Commit 6d2b2900 authored by Vaughn Fajardo's avatar Vaughn Fajardo

feat: added department model to admin

parent 080f4ecc
from django.contrib import admin from django.contrib import admin
# Register your models here. # Register your models here.
from .models import WidgetUser from .models import WidgetUser, Department
admin.site.register(WidgetUser) admin.site.register(WidgetUser)
admin.site.register(Department)
# Generated by Django 4.0.3 on 2022-03-24 11:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('homepage', '0003_remove_widgetuser_department_department_department_and_more'),
]
operations = [
migrations.RenameField(
model_name='department',
old_name='department',
new_name='widgetuser',
),
]
...@@ -7,6 +7,8 @@ class WidgetUser(models.Model): ...@@ -7,6 +7,8 @@ class WidgetUser(models.Model):
id_num = models.IntegerField(max_length=7, null=True) id_num = models.IntegerField(max_length=7, null=True)
email = models.EmailField(max_length=50, null=True) email = models.EmailField(max_length=50, null=True)
def __str__(self):
return self.first_name
# Create your models here. # Create your models here.
class Department(models.Model): class Department(models.Model):
......
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