mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-16 22:09:27 +08:00
Merge branch 'master' of https://git.keannu1.duckdns.org/keannu125/Borrowing-TrackerBackend
This commit is contained in:
commit
43b6180779
2 changed files with 1 additions and 3 deletions
|
@ -9,7 +9,7 @@ class CustomUserAdmin(UserAdmin):
|
||||||
list_display = UserAdmin.list_display + \
|
list_display = UserAdmin.list_display + \
|
||||||
('is_technician', 'is_teacher', 'id')
|
('is_technician', 'is_teacher', 'id')
|
||||||
fieldsets = UserAdmin.fieldsets + (
|
fieldsets = UserAdmin.fieldsets + (
|
||||||
(None, {'fields': ('is_technician', 'is_teacher', 'course')}),
|
(None, {'fields': ('is_technician', 'is_teacher', 'course', 'section')}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ from django.core.cache import cache
|
||||||
|
|
||||||
class CustomUserSerializer(serializers.ModelSerializer):
|
class CustomUserSerializer(serializers.ModelSerializer):
|
||||||
name = serializers.CharField(source='__str__')
|
name = serializers.CharField(source='__str__')
|
||||||
course = serializers.CharField()
|
|
||||||
section = serializers.CharField()
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = CustomUser
|
model = CustomUser
|
||||||
|
|
Loading…
Reference in a new issue