Add section to transaction serializer

This commit is contained in:
Keannu Bernasol 2024-01-20 19:47:15 +08:00
parent 2e81e0538c
commit 4a9c81fd34

View file

@ -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):