Retornar o atributo ForeignKey Django Rest
username = serializers.SerializerMethodField("get_username")
def get_username(self, obj):
return obj.owner.username
Daramola Afeez