mirror of
https://github.com/lemeow125/EquipmentTracker-Backend.git
synced 2024-11-16 21:59:25 +08:00
Add is_technician field to django admin panel
This commit is contained in:
parent
f8bc36a2c4
commit
c1ca024b4e
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,9 @@ from .models import CustomUser
|
|||
class CustomUserAdmin(UserAdmin):
|
||||
model = CustomUser
|
||||
list_display = UserAdmin.list_display + ('is_technician',)
|
||||
fieldsets = UserAdmin.fieldsets + (
|
||||
(None, {'fields': ('is_technician',)}),
|
||||
)
|
||||
|
||||
|
||||
admin.site.register(CustomUser, CustomUserAdmin)
|
||||
|
|
Loading…
Reference in a new issue