From 4a9c81fd34092667900de0ad1ff1e943b2786929 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sat, 20 Jan 2024 19:47:15 +0800 Subject: [PATCH] Add section to transaction serializer --- equipment_tracker/transactions/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/equipment_tracker/transactions/serializers.py b/equipment_tracker/transactions/serializers.py index ee57a97..c0e9f93 100644 --- a/equipment_tracker/transactions/serializers.py +++ b/equipment_tracker/transactions/serializers.py @@ -11,10 +11,11 @@ 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 - fields = ['id', 'name', 'course'] + fields = ['id', 'name', 'course', 'section'] class EquipmentInstanceSerializer(serializers.ModelSerializer):