mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2024-11-17 06:29:26 +08:00
Add subject code to serializer
This commit is contained in:
parent
134df378c3
commit
c9c7d1f5ec
1 changed files with 1 additions and 1 deletions
|
@ -8,6 +8,6 @@ class SubjectSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Subject
|
model = Subject
|
||||||
fields = ('id', 'name',
|
fields = ('id', 'name', 'code',
|
||||||
'max_slots', 'year_level', 'semester')
|
'max_slots', 'year_level', 'semester')
|
||||||
read_only_fields = ['id']
|
read_only_fields = ['id']
|
||||||
|
|
Loading…
Reference in a new issue