diff --git a/equipment_tracker/accounts/admin.py b/equipment_tracker/accounts/admin.py index 844f17a..07b04de 100644 --- a/equipment_tracker/accounts/admin.py +++ b/equipment_tracker/accounts/admin.py @@ -9,7 +9,7 @@ class CustomUserAdmin(UserAdmin): list_display = UserAdmin.list_display + \ ('is_technician', 'is_teacher', 'id') fieldsets = UserAdmin.fieldsets + ( - (None, {'fields': ('is_technician', 'is_teacher', 'course')}), + (None, {'fields': ('is_technician', 'is_teacher', 'course', 'section')}), ) diff --git a/equipment_tracker/transactions/serializers.py b/equipment_tracker/transactions/serializers.py index c0e9f93..8f2eb1c 100644 --- a/equipment_tracker/transactions/serializers.py +++ b/equipment_tracker/transactions/serializers.py @@ -10,8 +10,6 @@ from django.core.cache import cache class CustomUserSerializer(serializers.ModelSerializer): name = serializers.CharField(source='__str__') - course = serializers.CharField() - section = serializers.CharField() class Meta: model = CustomUser