修改用户信息api

This commit is contained in:
zemal
2017-07-04 10:26:02 +08:00
parent 78a8999b44
commit b931724c9b
4 changed files with 13 additions and 26 deletions

View File

@@ -65,6 +65,7 @@ class APIView(View):
for parser in self.request_parsers:
if content_type.startswith(parser.content_type):
break
# else means the for loop is not interrupted by break
else:
raise ValueError("unknown content_type '%s'" % content_type)
if body: