Updated admin panel

parent c60045b6
...@@ -6,9 +6,9 @@ from .models import Department, WidgetUser ...@@ -6,9 +6,9 @@ from .models import Department, WidgetUser
class DepartmentAdmin(admin.ModelAdmin): class DepartmentAdmin(admin.ModelAdmin):
model = Department model = Department
search_fields = ('department_name', 'home_unit') search_fields = ('dept_name', 'home_unit')
list_display = ('department_name', 'home_unit') list_display = ('dept_name', 'home_unit')
list_filter = ['department_name', 'home_unit'] list_filter = ['dept_name', 'home_unit']
class WidgetUserAdmin(admin.ModelAdmin): 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