add section to admin panel

This commit is contained in:
Keannu Bernasol 2024-01-20 19:55:24 +08:00
parent e8a30537c8
commit 142daa8828

View file

@ -9,7 +9,7 @@ class CustomUserAdmin(UserAdmin):
list_display = UserAdmin.list_display + \
('is_technician', 'is_teacher', 'id')
fieldsets = UserAdmin.fieldsets + (
(None, {'fields': ('is_technician', 'is_teacher', 'course')}),
(None, {'fields': ('is_technician', 'is_teacher', 'course', 'section')}),
)