Developer 2024 🎇限时优惠进行中,现在购买立即享受

现在购买

升级7.0的框架之后,(list_editable)使用鼠标双击,编辑功能的时候 出现一下的问题,提示json无法序列化,望紧急修复下!非常感谢

avatar张先生
8月29日388次阅读
list_editable = ['traceStatu','data']

Traceback (most recent call last):

File "D:\ProgramData\Anaconda3\envs\untitled14\lib\site-packages\django\core\handlers\exception.py", line 55, in inner response = get_response(request) File "D:\ProgramData\Anaconda3\envs\untitled14\lib\site-packages\django\core\handlers\base.py", line 185, in get_response response = middleware_method( File "", line 29, in process_view File "", line 38, in process_view File "", line 86, in pre_process File "", line 172, in process_list File "", line 543, in process_editor File "D:\ProgramData\Anaconda3\envs\untitled14\lib\json_init.py", line 231, in dumps return _default_encoder.encode(obj) File "D:\ProgramData\Anaconda3\envs\untitled14\lib\json\encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "D:\ProgramData\Anaconda3\envs\untitled14\lib\json\encoder.py", line 257, in iterencode return _iterencode(o, 0) File "D:\ProgramData\Anaconda3\envs\untitled14\lib\json\encoder.py", line 179, in default raise TypeError(f'Object of type {o.class.name} ' TypeError: Object of type proxy is not JSON serializable

发布评论
登录后发表内容
0个评论