Commit a2ca8101 authored by justin's avatar justin

Added dashboard admin inlining and filter method

parent ec92519d
......@@ -2,6 +2,10 @@ from django.contrib import admin
from .models import Department, WidgetUser
class WidgetUserInline(admin.TabularInline):
model = WidgetUser
class DepartmentAdmin(admin.ModelAdmin):
model = Department
list_display = (
......@@ -12,6 +16,8 @@ class DepartmentAdmin(admin.ModelAdmin):
"dept_name",
"home_unit",
)
list_filter = ("home_unit",)
inlines = [WidgetUserInline]
class WidgetUserAdmin(admin.ModelAdmin):
......
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