mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2024-11-16 22:19:25 +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:
|
||||
model = Subject
|
||||
fields = ('id', 'name',
|
||||
fields = ('id', 'name', 'code',
|
||||
'max_slots', 'year_level', 'semester')
|
||||
read_only_fields = ['id']
|
||||
|
|
Loading…
Reference in a new issue