django RESTful API

2021-06-23 08:08

阅读:649

标签:exception   res   cep   djang   error   tee   name   nal   when   

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

标签:exception   res   cep   djang   error   tee   name   nal   when   

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


评论


亲,登录后才可以留言!