added custom user to admin page
This commit is contained in:
parent
b80f7a106f
commit
0f10b70308
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,13 @@ from .models import (Department, StudentGroup, TeachingUnit, StudentCard, Teachi
|
|||
|
||||
|
||||
# Register your models here.
|
||||
@admin.register(User)
|
||||
class AdminUser(admin.ModelAdmin):
|
||||
list_display = ("id", "username", "email", "first_name", "last_name", "is_staff")
|
||||
search_fields = ("id", "username", "email", "first_name", "last_name", "is_staff")
|
||||
list_filter = ("is_staff",)
|
||||
|
||||
|
||||
@admin.register(Department)
|
||||
class AdminDepartment(admin.ModelAdmin):
|
||||
list_display = ("id", "name")
|
||||
|
|
Loading…
Reference in a new issue