mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2025-04-27 10:11:24 +08:00
Improve transaction serializer and add user id to django admin list view in admin panel
This commit is contained in:
parent
9d2f777ffc
commit
9443631102
2 changed files with 6 additions and 5 deletions
|
@ -6,7 +6,8 @@ from .models import CustomUser
|
|||
|
||||
class CustomUserAdmin(UserAdmin):
|
||||
model = CustomUser
|
||||
list_display = UserAdmin.list_display + ('is_technician', 'is_teacher')
|
||||
list_display = UserAdmin.list_display + \
|
||||
('is_technician', 'is_teacher', 'id')
|
||||
fieldsets = UserAdmin.fieldsets + (
|
||||
(None, {'fields': ('is_technician', 'is_teacher')}),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue