我想在另一个序列化程序中使用序列化程序,所以我可以在顶层添加键值对,但看起来像当我这样做时,较低级别的序列化程序不工作anymore- 我的文件: 上述ItemsController class ItemsController
def index
open_items = Items.
select("distinct on (open_item_id) *").
我试图在request.data的表中添加额外的字段auth_token,但它给出了错误。错误是 - data['auth_token_id'] = auth_token TypeError: list indices must be integers or slices, not str 我的代码如下: serializers.py class AppSerializer(serializers