mirror of
https://github.com/lemeow125/InfoTech-Backend.git
synced 2024-11-16 22:19:25 +08:00
Fixed full_name in professor serializer
This commit is contained in:
parent
98392344a1
commit
f9b585108e
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue