mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2024-11-17 06:19:24 +08:00
15 lines
402 B
Python
15 lines
402 B
Python
from django.contrib import admin
|
|
from django.contrib.auth.admin import UserAdmin
|
|
from .models import CustomUser
|
|
|
|
|
|
class CustomUserAdmin(UserAdmin):
|
|
model = CustomUser
|
|
|
|
fieldsets = UserAdmin.fieldsets + (
|
|
(None, {'fields': ('student_id_number',
|
|
'year_level', 'semester', 'course', 'avatar', 'is_student', 'is_banned')}),
|
|
)
|
|
|
|
|
|
admin.site.register(CustomUser, CustomUserAdmin)
|