Django AttributeError: 'BugDeserializer' object has no attribute '_meta'

Django AttributeError: 'BugDeserializer' object has no attribute '_meta'

 

 BugDeserializer 对象中没有 ‘_meta’ 属性,定位到调用BugDeserializer位置, 用于序列化时,将模型类对象传入instance参数

Django AttributeError: 'BugDeserializer' object has no attribute '_meta'

 

 在update时,数据传入有误,更改如下:

Django AttributeError: 'BugDeserializer' object has no attribute '_meta'

再次run,运行正常

Django AttributeError: 'BugDeserializer' object has no attribute '_meta'

 

Django AttributeError: 'BugDeserializer' object has no attribute '_meta'

上一篇:Jmeter、fiddler、postman 如何模拟ajax请求


下一篇:前端json数据格式化显示