diff --git a/infotech/professors/serializers.py b/infotech/professors/serializers.py index b4b92c1..897cd98 100644 --- a/infotech/professors/serializers.py +++ b/infotech/professors/serializers.py @@ -9,6 +9,6 @@ class ProfessorSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = Professor - fields = ('id', 'first_name', + fields = ('id', 'full_name', 'first_name', 'last_name', 'age', 'gender', 'date_joined') - read_only_fields = ('id', 'date_joined') + read_only_fields = ('id', 'date_joined', 'full_name')