在 PostSerializer#raw 中调用 super 导致 500 错误,而调用 object.raw 却可以工作的原因是什么?

您想改用 add_to_serializer

例如:How to add user data to the post serializer?