2👍
Change:
company = CompanySerializer(source='employee.company')
to:
company = serializers.ReadOnlyField(source='employee.company.name')
Source:stackexchange.com
2👍
Change:
company = CompanySerializer(source='employee.company')
to:
company = serializers.ReadOnlyField(source='employee.company.name')