📜  如何将查询集转换为 json 字符串 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:03:10.492000             🧑  作者: Mango
代码示例1
# Simply wrap the queryset in a list
data = list(queryset.values())
# Hint: need to use .values() not .all()