Add course to slug related field for borrower in transaction serializer

This commit is contained in:
Keannu Bernasol 2023-12-29 18:47:21 +08:00
parent 2ddc9da179
commit 7a8281dabd

View file

@ -9,10 +9,11 @@ from config.settings import DEBUG
class CustomUserSerializer(serializers.ModelSerializer):
name = serializers.CharField(source='__str__')
course = serializers.CharField()
class Meta:
model = CustomUser
fields = ['id', 'name']
fields = ['id', 'name', 'course']
class EquipmentInstanceSerializer(serializers.ModelSerializer):