Commit 4de7a617 authored by Brendan Fausto's avatar Brendan Fausto

Created admin for dashboard

parent f8ef1ce6
from django.contrib import admin from django.contrib import admin
# Register your models here. from .models import Department, WidgetUser
class DepartmentAdmin(model.ModelAdmin):
model = Department
search_fields = ('dept_name','home_unit',)
list_display = ('dept_name','home_unit',)
class WidgetUserAdmin(model.ModelAdmin):
model = WidgetUser
search_fields = ('first_name','middle_name','last_name','department',)
list_display = ('first_name','middle_name','last_name','department',)
list_filter = ('department',)
admin.site.register(Department, DepartmentAdmin)
admin.site.register(WidgetUser, WidgetUserAdmin)
\ No newline at end of file
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