Borrowing-TrackerBackend/equipment_tracker/accounts/admin.py

12 lines
310 B
Python

from django import forms
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .models import CustomUser
class CustomUserAdmin(UserAdmin):
model = CustomUser
list_display = UserAdmin.list_display + ('is_technician',)
admin.site.register(CustomUser, CustomUserAdmin)