写接口时出现(In order to allow non-dict objects to be serialized set the safe parameter to False.)

在返回js数据时加入safe=False
return JsonResponse(,safe=False)`

posted @ 2022-09-09 15:49  张伟豪zhangweihao  阅读(207)  评论(0编辑  收藏  举报