django RESTful API
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,问题就会解决