From c9c7d1f5ec12df8ad6349a1cf77a3099b0fdf261 Mon Sep 17 00:00:00 2001 From: keannu125 Date: Sat, 22 Apr 2023 11:00:40 +0800 Subject: [PATCH] Add subject code to serializer --- infotech/subjects/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infotech/subjects/serializers.py b/infotech/subjects/serializers.py index 8deffe7..a48a818 100644 --- a/infotech/subjects/serializers.py +++ b/infotech/subjects/serializers.py @@ -8,6 +8,6 @@ class SubjectSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Subject - fields = ('id', 'name', + fields = ('id', 'name', 'code', 'max_slots', 'year_level', 'semester') read_only_fields = ['id']