首页 > Windows开发 > 详细

django RESTful API

时间:2018-12-30 15:59:21      阅读:135      评论:0      收藏:0      [点我收藏+]
Got AttributeError when attempting to get a value for field `code` on serializer `SnippetSerializer`.
The serializer field might be named incorrectly and not match any attribute or key on the `UserInfo` instance.
Original exception text was: ‘UserInfo‘ object has no attribute ‘codet‘

django中的字段参数TextField如果不加参数就会报出类似的错,加入,blank = True,问题就会解决

django RESTful API

原文:https://www.cnblogs.com/tanyingling/p/10199629.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!